]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_console.c
mpc83xx: Fix errors when CONFIG_OF_LIBFDT is enabled
[karo-tx-uboot.git] / common / cmd_console.c
index a5f792b0648895839fde6cbf3596ef1f59d4173e..5e0f990723b371c013fe315af27811db812fc2e4 100644 (file)
@@ -28,7 +28,7 @@
 #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[])
@@ -37,7 +37,7 @@ 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);
@@ -58,4 +58,14 @@ int do_coninfo (cmd_tbl_t * cmd, int flag, int argc, char *argv[])
        }
        return 0;
 }
-#endif /* CFG_CMD_CONSOLE */
+
+
+/***************************************************/
+
+U_BOOT_CMD(
+       coninfo,        3,      1,      do_coninfo,
+       "coninfo - print console devices and information\n",
+       ""
+);
+
+#endif