From a61cc6c28f3662b8f67fffd731864f4e2d5470c1 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 5 Jan 2008 06:59:11 +0000 Subject: [PATCH] 2008-01-05 Chris Johns * libchip/flash/am29lv160.c: Update the blank check error message to say there is an error. --- c/src/ChangeLog | 5 +++++ c/src/libchip/flash/am29lv160.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/c/src/ChangeLog b/c/src/ChangeLog index 93dd21cc70..66a7a08553 100644 --- a/c/src/ChangeLog +++ b/c/src/ChangeLog @@ -1,3 +1,8 @@ +2008-01-05 Chris Johns + + * libchip/flash/am29lv160.c: Update the blank check error message + to say there is an error. + 2007-12-22 Chris Johns * nfsclient/src/nfs.c, nfsclient/src/rpcio.c: Adjust the length of diff --git a/c/src/libchip/flash/am29lv160.c b/c/src/libchip/flash/am29lv160.c index dfeb4a2776..a50de0135f 100644 --- a/c/src/libchip/flash/am29lv160.c +++ b/c/src/libchip/flash/am29lv160.c @@ -18,7 +18,9 @@ #include +#ifndef AM26LV160_ERROR_TRACE #define AM26LV160_ERROR_TRACE (0) +#endif /** * Boot blocks at the top @@ -105,7 +107,7 @@ rtems_am29lv160_blank (const rtems_fdisk_segment_desc* sd, if (*seg_8++ != 0xff) { #if AM26LV160_ERROR_TRACE - printf ("AM26LV160: blank check: %p = 0x%02x\n", + printf ("AM26LV160: blank check error: %p = 0x%02x\n", seg_8 - 1, *(seg_8 - 1)); #endif return EIO; @@ -120,7 +122,7 @@ rtems_am29lv160_blank (const rtems_fdisk_segment_desc* sd, if (*seg_32++ != 0xffffffff) { #if AM26LV160_ERROR_TRACE - printf ("AM26LV160: blank check: %p = 0x%08lx\n", + printf ("AM26LV160: blank check error: %p = 0x%08lx\n", seg_32 - 1, *(seg_32 - 1)); #endif return EIO; @@ -132,7 +134,7 @@ rtems_am29lv160_blank (const rtems_fdisk_segment_desc* sd, if (*seg_8++ != 0xff) { #if AM26LV160_ERROR_TRACE - printf ("AM26LV160: blank check: %p = 0x%02x\n", + printf ("AM26LV160: blank check error: %p = 0x%02x\n", seg_8 - 1, *(seg_8 - 1)); #endif return EIO;