From 8e0169affb4ecbbb4b81937089cce1a889355074 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 10a6aa5..b567b4f 100644 --- a/src/template.c +++ b/src/template.c @@ -220,8 +220,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; }