#include <command.h>
#include <devices.h>
-#if (CONFIG_COMMANDS & CFG_CMD_CONSOLE)
+#if defined(CONFIG_CMD_CONSOLE)
extern void _do_coninfo (void);
int do_coninfo (cmd_tbl_t * cmd, int flag, int argc, char *argv[])
/* Scan for valid output and input devices */
- printf ("List of available devices:\n");
+ puts ("List of available devices:\n");
for (i = 1; i <= ListNumItems (devlist); i++) {
device_t *dev = ListGetPtrToItem (devlist, i);
/***************************************************/
-cmd_tbl_t U_BOOT_CMD(CONINFO) = MK_CMD_ENTRY(
- "coninfo", 3, 1, do_coninfo,
- "coninfo - print console devices and informations\n",
+U_BOOT_CMD(
+ coninfo, 3, 1, do_coninfo,
+ "coninfo - print console devices and information\n",
""
);
-#endif /* CFG_CMD_CONSOLE */
+#endif