From e335496a3222125a30136ad2c7762429b75624ed Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Mon, 7 Aug 2006 14:29:04 +0200 Subject: Change "mii info" to not print an error upon missing PHY at address Patch by Stefan Roese, 07 Aug 2006 --- common/cmd_mii.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common') diff --git a/common/cmd_mii.c b/common/cmd_mii.c index ee5e43ee8..e6595360c 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -117,8 +117,6 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) miiphy_speed (devname, j), (miiphy_duplex (devname, j) == FULL) ? "FDX" : "HDX"); - } else { - puts ("Error reading info from the PHY\n"); } } } else if (op == 'r') { @@ -503,8 +501,6 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) miiphy_speed (devname, j), (miiphy_duplex (devname, j) == FULL) ? "FDX" : "HDX"); - } else { - puts ("Error reading info from the PHY\n"); } } } else if (op[0] == 'r') { -- cgit v1.2.3 From d8f961bbdaeef4dc1af7a01e297bf2d7e25ae227 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Mon, 7 Aug 2006 15:08:44 +0200 Subject: Fix control-c handing in CONFIG_CMDLINE_EDITING Properly pass break code back from readline. Patch by Roger Blofeld, 31 Jul 2006 --- CHANGELOG | 4 ++++ common/main.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/CHANGELOG b/CHANGELOG index 5ef76d220..e451b517a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Fix control-c handing in CONFIG_CMDLINE_EDITING + Properly pass break code back from readline. + Patch by Roger Blofeld, 31 Jul 2006 + * Add commandline history support to all AMCC eval boards Patch by Stefan Roese, 07 Aug 2006 diff --git a/common/main.c b/common/main.c index 3788bd5e4..13d12a430 100644 --- a/common/main.c +++ b/common/main.c @@ -937,6 +937,7 @@ int readline (const char *const prompt) #ifdef CONFIG_CMDLINE_EDITING char *p = console_buffer; unsigned int len=MAX_CMDBUF_SIZE; + int rc; static int initted = 0; if (!initted) { @@ -946,8 +947,8 @@ int readline (const char *const prompt) puts (prompt); - cread_line(p, &len); - return len; + rc = cread_line(p, &len); + return rc < 0 ? rc : len; #else char *p = console_buffer; int n = 0; /* buffer index */ -- cgit v1.2.3