projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d7212
)
Change dead code in "test" cmd to debug output
author
Joe Hershberger
<joe.hershberger@ni.com>
Fri, 17 Aug 2012 10:56:12 +0000
(10:56 +0000)
committer
Tom Rini
<trini@ti.com>
Wed, 3 Oct 2012 23:01:22 +0000
(16:01 -0700)
Improve debug output for test by indicating the number of parameters
and quoting the parameters to make it clear exactly what each contains
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
common/cmd_test.c
patch
|
blob
|
history
diff --git
a/common/cmd_test.c
b/common/cmd_test.c
index fcb5ef2f7199a695b4267249666b7e652e4c0291..6da06b9f788417c451523e5deac0d4cfa1c43c90 100644
(file)
--- a/
common/cmd_test.c
+++ b/
common/cmd_test.c
@@
-33,12
+33,12
@@
int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (argc < 3)
return 1;
-#if
0
+#if
def DEBUG
{
-
printf("test:"
);
+
debug("test(%d):", argc
);
left = 1;
while (argv[left])
-
printf(" %s
", argv[left++]);
+
debug(" '%s'
", argv[left++]);
}
#endif