Merge with /home/tur/git/u-boot#cm5200-si
[platform/kernel/u-boot.git] / common / cmd_console.c
index a5f792b..5e0f990 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