From: Rebecca Cran Date: Tue, 7 Feb 2017 16:13:19 +0000 (-0700) Subject: Fix the return type of log_err and log_info functions X-Git-Tag: fio-2.18~22 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d1f20a3964c8959a4bc10e61517ddd02d1a92303;hp=c6b80f7e095985237136cfb41eb8521d0a51279f Fix the return type of log_err and log_info functions Signed-off-by: Jens Axboe --- diff --git a/t/log.c b/t/log.c index 1ed38519..929aac6c 100644 --- a/t/log.c +++ b/t/log.c @@ -2,7 +2,7 @@ #include #include "../minmax.h" -int log_err(const char *format, ...) +size_t log_err(const char *format, ...) { char buffer[1024]; va_list args; @@ -16,7 +16,7 @@ int log_err(const char *format, ...) return fwrite(buffer, len, 1, stderr); } -int log_info(const char *format, ...) +size_t log_info(const char *format, ...) { char buffer[1024]; va_list args;