summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 15:38:34 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 18:00:43 +0100
commit2faf6205f8263049584320daf75c4136aeb9493d (patch)
tree232aec6ee038272830887280fc255888b91fbec7
parentaea95eebdc9d981be337467b7a87eb9f58845a42 (diff)
downloadtbdiff-2faf6205f8263049584320daf75c4136aeb9493d.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 f11a2fd..3de0ab3 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_DEBUG("Invalid command 0x%02"PRIx8".\n", cmd);
return TBD_ERROR(TBD_ERROR_INVALID_PARAMETER);
}
}