XilinxProcessorIPLib/drivers/dp12txss/examples/src/key/keymgmt.c
int
KEYMGMT_Debug(
  int         argc,
  const char* argv[]
)
{
  /* Locals */
  int thereWasAProblem = FALSE;

  /* CR/LF */
  KEYMGMT_CONSOLE_PRINTF("\r\n");

  /* Sanity Check */
  if (argc > 1)
  {
    /* Check for device */
    if (strcmp(argv[1], "device") == 0)
      KEYMGMTDEV_Debug(argc-2, argv+2);
    /* Otherwise */
    else
      thereWasAProblem = TRUE;
  }
  /* Otherwise */
  else
  {
    thereWasAProblem = TRUE;
  }

  /* Check for help */
  if (thereWasAProblem)
  {
    /* Display it */
    KEYMGMT_CONSOLE_PRINTF("keymgmt <device>\r\n");
  }

  /* CR/LF */
  KEYMGMT_CONSOLE_PRINTF("\r\n");

  /* Return */
  return (0);
}
/*****************************************************************************/
/**
*
* This function implements the "keymgmt" debug command
*
* @param argc  the number of command line arguments
* @param argv  the list of the command line arguments
*
* @return
*   Always returns zero (0)
*
* @note
*   None.
*
******************************************************************************/
This function implements the "keymgmt" debug command
This function implements the " keymgmt " debug command
int
KEYMGMT_Debug(
  int         argc,
  const char* argv[]
)
{
  int thereWasAProblem = FALSE;
  KEYMGMT_CONSOLE_PRINTF("\r\n");
  if (argc > 1)
  {
    if (strcmp(argv[1], "device") == 0)
      KEYMGMTDEV_Debug(argc-2, argv+2);
    else
      thereWasAProblem = TRUE;
  }
  else
  {
    thereWasAProblem = TRUE;
  }
  if (thereWasAProblem)
  {
    KEYMGMT_CONSOLE_PRINTF("keymgmt <device>\r\n");
  }
  KEYMGMT_CONSOLE_PRINTF("\r\n");
  return (0);
}
int KEYMGMT_Debug ( int argc , const char * argv [ ] ) { int thereWasAProblem = FALSE ; KEYMGMT_CONSOLE_PRINTF ( " \r \n " ) ; if ( argc > 1 ) { if ( strcmp ( argv [ 1 ] , " " ) == 0 ) KEYMGMTDEV_Debug ( argc - 2 , argv + 2 ) ; else thereWasAProblem = TRUE ; } else { thereWasAProblem = TRUE ; } if ( thereWasAProblem ) { KEYMGMT_CONSOLE_PRINTF ( " \r \n " ) ; } KEYMGMT_CONSOLE_PRINTF ( " \r \n " ) ; return ( 0 ) ; }
This function implements the "keymgmt" debug command
This function implements the " keymgmt " debug command
/* Locals */ /* CR/LF */ /* Sanity Check */ /* Check for device */ /* Otherwise */ /* Otherwise */ /* Check for help */ /* Display it */ /* CR/LF */ /* Return */