summaryrefslogtreecommitdiffstats
path: root/commands/test.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 15:18:39 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 15:18:39 +0200
commit64caff6c941a46ef4a6fffc9c96dced548994e38 (patch)
tree010d2b22e2880770c5fb1905eb3953103b91ec4e /commands/test.c
parente3f34e28da77623e39ed16ff62f7268f33f00dce (diff)
downloadbarebox-64caff6c941a46ef4a6fffc9c96dced548994e38.tar.gz
barebox-64caff6c941a46ef4a6fffc9c96dced548994e38.tar.xz
remove debug printf
Diffstat (limited to 'commands/test.c')
-rw-r--r--commands/test.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/commands/test.c b/commands/test.c
index 0153a21f7c..6d59f01057 100644
--- a/commands/test.c
+++ b/commands/test.c
@@ -144,24 +144,20 @@ do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
adv = 2;
if (ap[1] && *ap[1] != ']' && strlen(ap[1])) {
expr = stat(ap[1], &statbuf);
- printf("expr: %d\n", expr);
if (expr < 0) {
expr = 0;
break;
}
expr = 0;
if (opt == OPT_EXISTS) {
- printf("exists\n");
expr = 1;
break;
}
if (opt == OPT_FILE && S_ISREG(statbuf.st_mode)) {
- printf("reg\n");
expr = 1;
break;
}
if (opt == OPT_DIRECTORY && S_ISDIR(statbuf.st_mode)) {
- printf("dir\n");
expr = 1;
break;
}
@@ -186,7 +182,6 @@ do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
expr = strcmp(ap[0], ap[2]) != 0;
break;
case OPT_ARITH_EQUAL:
- printf("equal: %d %d\n", a, b);
expr = a == b;
break;
case OPT_ARITH_NOT_EQUAL: