From 505812da6c23b1a5365b859ae046bc454f322fae Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 3 Jun 2024 00:29:45 +0300 Subject: [PATCH] template.c: output all errors to STDERR --- src/template.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/template.c b/src/template.c index 0f5ea5a..025b2f3 100644 --- a/src/template.c +++ b/src/template.c @@ -272,8 +272,9 @@ main(void) sizeof(uint8_t)); if (BLOCK_SIZE < 1) { # if !SILENT_MODE - printf("The block size " INT2STR(BLOCK_SIZE_BYTES) " is too small, " - "should be at least %" PRIuMAX " bytes\n", MINIMUM_BLOCK_SIZE); + fprintf(stderr, "The block size " INT2STR(BLOCK_SIZE_BYTES) " is too " + "small, should be at least %" PRIuMAX " bytes\n", + MINIMUM_BLOCK_SIZE); # endif return EXIT_FAILURE; }