summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 14:38:34 (GMT)
committerBen Brewer <ben.brewer@codethink.co.uk>2014-06-02 10:03:01 (GMT)
commit9ce137fa7b1564786b93697f3ccadcd61370cd4e (patch)
tree7e1736bb87804e8b96a7c5c25ff2386013876a1b
parent22af73f152d48af1b7ecc78b32ef3b7bc43ca3d3 (diff)
downloadtbdiff-9ce137fa7b1564786b93697f3ccadcd61370cd4e.tar.gz
Use TBD_DEBUG macro to print the value of an invalid command
Use the TBD_DEBUG macro since it will be disabled when debug is disabled, otherwise we'd always print the error message.
-rw-r--r--tbdiff/tbdiff-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbdiff/tbdiff-apply.c b/tbdiff/tbdiff-apply.c
index c5bb4ae..2bbc9cc 100644
--- a/tbdiff/tbdiff-apply.c
+++ b/tbdiff/tbdiff-apply.c
@@ -769,7 +769,7 @@ tbd_apply(FILE *stream)
flush = true;
break;
default:
- fprintf(stderr, "Error: Invalid command 0x%02"PRIx8".\n", cmd);
+ TBD_DEBUGF("Invalid command 0x%02"PRIx8".\n", cmd);
return TBD_ERROR(TBD_ERROR_INVALID_PARAMETER);
}
}