summaryrefslogtreecommitdiffstats
path: root/c/src/libchip
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-01-05 06:59:11 +0000
committerChris Johns <chrisj@rtems.org>2008-01-05 06:59:11 +0000
commita61cc6c28f3662b8f67fffd731864f4e2d5470c1 (patch)
treedd489eb4bf83d49131a31223a3635428544dc84f /c/src/libchip
parent2008-01-05 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-a61cc6c28f3662b8f67fffd731864f4e2d5470c1.tar.bz2
2008-01-05 Chris Johns <chrisj@rtems.org>
* libchip/flash/am29lv160.c: Update the blank check error message to say there is an error.
Diffstat (limited to 'c/src/libchip')
-rw-r--r--c/src/libchip/flash/am29lv160.c8
1 files changed, 5 insertions, 3 deletions
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 <libchip/am29lv160.h>
+#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;