diff options
| author | Joe Hershberger <joe.hershberger@ni.com> | 2012-08-17 10:56:12 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-10-03 16:01:22 -0700 | 
| commit | b0fe6abd716c2f6c13860ce131f229c44d0295e5 (patch) | |
| tree | 020ada38e5a5d25b6affdd8211299f7738dbfa76 | |
| parent | 93d7212fa6a7fa5ef01927c13ab360d1a4d6e95b (diff) | |
| download | olio-uboot-2014.01-b0fe6abd716c2f6c13860ce131f229c44d0295e5.tar.xz olio-uboot-2014.01-b0fe6abd716c2f6c13860ce131f229c44d0295e5.zip | |
Change dead code in "test" cmd to debug output
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>
| -rw-r--r-- | common/cmd_test.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/common/cmd_test.c b/common/cmd_test.c index fcb5ef2f7..6da06b9f7 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 |