diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-05-29 15:38:34 +0100 |
---|---|---|
committer | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 11:03:01 +0100 |
commit | 9ce137fa7b1564786b93697f3ccadcd61370cd4e (patch) | |
tree | 7e1736bb87804e8b96a7c5c25ff2386013876a1b /tbdiff | |
parent | 22af73f152d48af1b7ecc78b32ef3b7bc43ca3d3 (diff) | |
download | tbdiff-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.
Diffstat (limited to 'tbdiff')
-rw-r--r-- | tbdiff/tbdiff-apply.c | 2 |
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); } } |