From: Alejandro Colomar Date: Sun, 13 Jul 2025 11:58:34 +0000 (+0200) Subject: lib/io/fprintf/: eprintf(): Add macro to print to stderr X-Git-Tag: 4.20.0-rc3~5 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e662fba0d71829708e2e00c4271f4db80324af3d;p=thirdparty%2Fshadow.git lib/io/fprintf/: eprintf(): Add macro to print to stderr This will allow having shorter lines for writing to stderr. This name is commonly used in other projects, it seems (see link below). Link: Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- diff --git a/lib/io/fprintf.h b/lib/io/fprintf.h index 3848d7c84..4621b9866 100644 --- a/lib/io/fprintf.h +++ b/lib/io/fprintf.h @@ -16,6 +16,10 @@ #include "attr.h" +// eprintf - stderr print formatted +#define eprintf(...) fprintf(stderr, __VA_ARGS__) + + // fprinte - FILE* print errno #define fprinte(stream, ...) do \ { \