public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Change dead code in "test" cmd to debug output
@ 2012-08-17 20:56 Joe Hershberger
  2012-08-17 23:41 ` Mike Frysinger
  2012-10-04  1:19 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Joe Hershberger @ 2012-08-17 20:56 UTC (permalink / raw)
  To: u-boot

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 | 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
@@ -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
+#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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-04  1:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 20:56 [U-Boot] [PATCH] Change dead code in "test" cmd to debug output Joe Hershberger
2012-08-17 23:41 ` Mike Frysinger
2012-10-03 20:46   ` Joe Hershberger
2012-10-04  1:19 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox