17 Aug 2012 22:56
[PATCH] Change dead code in "test" cmd to debug output
Joe Hershberger <joe.hershberger <at> ni.com>
2012-08-17 20:56:12 GMT
2012-08-17 20:56:12 GMT
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 <at> ni.com>
---
common/cmd_test.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/cmd_test.c b/common/cmd_test.c
index fcb5ef2..6da06b9 100644
--- a/common/cmd_test.c
+++ b/common/cmd_test.c
<at> <at> -33,12 +33,12 <at> <at> int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (argc < 3)
return 1;
-#if 0
+#ifdef DEBUG
{
- printf("test:");
+ debug("test(%d):", argc);
left = 1;
while (argv[left])
- printf(" %s", argv[left++]);
+ debug(" '%s'", argv[left++]);
}
#endif
--
--
1.7.11.5
(Continue reading)
RSS Feed