summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-20 09:07:20 +0000
committerWolfgang Denk <wd@denx.de>2012-06-19 22:28:08 +0200
commit9504a5518c0742124bffaf7824d685edd296b7f1 (patch)
tree879720b36a1157f142bc91d815b3bf8e02adab66
parentdf736bd695dd477c2aba99a01345782c597dab05 (diff)
downloadu-boot-imx-9504a5518c0742124bffaf7824d685edd296b7f1.zip
u-boot-imx-9504a5518c0742124bffaf7824d685edd296b7f1.tar.gz
u-boot-imx-9504a5518c0742124bffaf7824d685edd296b7f1.tar.bz2
cmd_mem: replace custom PRINTF() with debug()
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--common/cmd_mem.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index fa6f599..91af799 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -34,12 +34,6 @@
#endif
#include <watchdog.h>
-#ifdef CMD_MEM_DEBUG
-#define PRINTF(fmt,args...) printf (fmt ,##args)
-#else
-#define PRINTF(fmt,args...)
-#endif
-
static int mod_mem(cmd_tbl_t *, int, int, int, char * const []);
/* Display values from last command.
@@ -676,7 +670,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_SYS_ALT_MEMTEST)
printf ("Testing %08x ... %08x:\n", (uint)start, (uint)end);
- PRINTF("%s:%d: start 0x%p end 0x%p\n",
+ debug("%s:%d: start 0x%p end 0x%p\n",
__FUNCTION__, __LINE__, start, end);
for (;;) {
@@ -693,7 +687,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
printf("Iteration: %6d\r", iterations);
- PRINTF("\n");
+ debug("\n");
iterations++;
/*
@@ -784,7 +778,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
pattern = (vu_long) 0xaaaaaaaa;
anti_pattern = (vu_long) 0x55555555;
- PRINTF("%s:%d: length = 0x%.8lx\n",
+ debug("%s:%d: length = 0x%.8lx\n",
__FUNCTION__, __LINE__,
len);
/*