From 71f9511803de65a3b98d2f592d418da1d1539f13 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 15 Jun 2003 22:40:42 +0000 Subject: * Fix CONFIG_NET_MULTI support in include/net.h * Patches by Kyle Harris, 13 Mar 2003: - Add FAT partition support - Add command support for FAT - Add command support for MMC ---- - Add Intel PXA support for video - Add Intel PXA support for MMC ---- - Enable MMC and FAT for lubbock board - Other misc changes for lubbock board --- common/command.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'common/command.c') diff --git a/common/command.c b/common/command.c index d52ddf1c8f..842e784d6a 100644 --- a/common/command.c +++ b/common/command.c @@ -74,6 +74,8 @@ #include #include #include +#include +#include #ifdef CONFIG_AMIGAONEG3SE #include @@ -131,13 +133,14 @@ do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (i > 1) putc(' '); - while ((c = *p++) != '\0') + while ((c = *p++) != '\0') { if (c == '\\' && *p == 'c') { putnl = 0; p++; - } - else + } else { putc(c); + } + } } if (putnl) @@ -190,8 +193,7 @@ do_help (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (cmdtp->usage) puts (cmdtp->usage); #endif /* CFG_LONGHELP */ - } - else { + } else { printf ("Unknown command '%s' - try 'help'" " without arguments for list of all" " known commands\n\n", @@ -263,6 +265,7 @@ cmd_tbl_t cmd_tbl[] = { CMD_TBL_DTT CMD_TBL_ECHO CMD_TBL_EEPROM + CMD_TBL_FAT CMD_TBL_FCCINFO CMD_TBL_FLERASE CMD_TBL_FDC @@ -302,6 +305,7 @@ cmd_tbl_t cmd_tbl[] = { CMD_TBL_LOOP CMD_TBL_JFFS2_LS CMD_TBL_MCCINFO + CMD_TBL_MMC CMD_TBL_MD CMD_TBL_MEMCINFO #ifdef CONFIG_AMIGAONEG3SE -- cgit v1.2.3