From 2faf6205f8263049584320daf75c4136aeb9493d Mon Sep 17 00:00:00 2001 From: Ben Brewer Date: Thu, 29 May 2014 15:38:34 +0100 Subject: 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. --- tbdiff/tbdiff-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.1