From 11b8ec4aac0e30215f4990cbc6accd55e0a16553 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 27 Mar 2017 14:14:20 +0200 Subject: btrfs-progs: add prefix to message helpers The implementation of message helpers use very generic names so we should at least use a prefix, as they're going to be usied from within the library. The build fix will follow. Reported-by: Mike Gilbert Signed-off-by: David Sterba --- messages.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'messages.c') diff --git a/messages.c b/messages.c index 5c906d69..7600091f 100644 --- a/messages.c +++ b/messages.c @@ -19,7 +19,7 @@ #include "messages.h" __attribute__ ((format (printf, 1, 2))) -void __warning(const char *fmt, ...) +void __btrfs_warning(const char *fmt, ...) { va_list args; @@ -31,7 +31,7 @@ void __warning(const char *fmt, ...) } __attribute__ ((format (printf, 1, 2))) -void __error(const char *fmt, ...) +void __btrfs_error(const char *fmt, ...) { va_list args; @@ -43,7 +43,7 @@ void __error(const char *fmt, ...) } __attribute__ ((format (printf, 2, 3))) -int __warning_on(int condition, const char *fmt, ...) +int __btrfs_warning_on(int condition, const char *fmt, ...) { va_list args; @@ -60,7 +60,7 @@ int __warning_on(int condition, const char *fmt, ...) } __attribute__ ((format (printf, 2, 3))) -int __error_on(int condition, const char *fmt, ...) +int __btrfs_error_on(int condition, const char *fmt, ...) { va_list args; -- cgit v1.2.3