diff options
Diffstat (limited to '')
-rw-r--r-- | include/err.h | 8 | ||||
-rw-r--r-- | include/error.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/err.h b/include/err.h index ae538ff..7557a04 100644 --- a/include/err.h +++ b/include/err.h @@ -41,7 +41,7 @@ * @param ... Formatting-arguments. */ void warn(const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 1, 2)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 1, 2)))); /** * Print a warning to stderr, followed by a description @@ -64,7 +64,7 @@ void vwarn(const char*, va_list); * @param ... Formatting-arguments. */ void warnx(const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 1, 2)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 1, 2)))); /** * Print a warning to stderr, but do not print a @@ -88,7 +88,7 @@ void vwarnx(const char*, va_list); * @param ... Formatting-arguments. */ __noreturn void err(int, const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 2, 3)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 2, 3)))); /** * Print an error message to stderr, followed by a @@ -113,7 +113,7 @@ __noreturn void verr(int, const char*, va_list); * @param ... Formatting-arguments. */ __noreturn void errx(int, const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 2, 3)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 2, 3)))); /** * Print an error message to stderr, but do not print a diff --git a/include/error.h b/include/error.h index 8cce80c..7cf551f 100644 --- a/include/error.h +++ b/include/error.h @@ -45,7 +45,7 @@ * @param args Formatting-arguments for `format`. */ void error(int, int, const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 3, 4)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 3, 4)))); /** * Variant of `error` that uses `va_list` instead of variadic arguments. @@ -82,7 +82,7 @@ void verror(int, int, const char*, va_list); * @param args Formatting-arguments for `format`. */ void error_at_line(int, int, const char*, unsigned int, const char*, ...) - __GCC_ONLY(__attribute__((format(printf, 5, 6)))); + __GCC_ONLY(__attribute__((format(slibc_printf, 5, 6)))); /** * Variant of `verror` that prints the filename and the line |