X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Futil.hpp;h=a2f0dbf84bf834e30644c5557d27b0038d9223a1;hb=9753260ef3e5bad3fc600987dbf9d82af259a4ea;hp=bc45dfd0ac7177eb73870c2cdbc1536fb56fd648;hpb=e86177d7a54d8c2c0e096fd856e64bb9671267a4;p=staging%2Fwindowmanager.git diff --git a/src/util.hpp b/src/util.hpp index bc45dfd..a2f0dbf 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -6,20 +6,21 @@ #include #ifdef __GNUC__ -#define ATTR_FORMAT(stringindex, firsttocheck) __attribute__((format(printf, stringindex, firsttocheck))) +#define ATTR_FORMAT(stringindex, firsttocheck) \ + __attribute__((format(printf, stringindex, firsttocheck))) #else #define ATTR_FORMAT(stringindex, firsttocheck) #endif -void lognotice(char const *fmt, ...) ATTR_FORMAT(1,2); -void logerror(char const *fmt, ...) ATTR_FORMAT(1,2); -void fatal(char const *fmt, ...) ATTR_FORMAT(1,2); +void lognotice(char const *fmt, ...) ATTR_FORMAT(1, 2); +void logerror(char const *fmt, ...) ATTR_FORMAT(1, 2); +void fatal(char const *fmt, ...) ATTR_FORMAT(1, 2); #ifdef DEBUG_OUTPUT -void logdebug(char const *fmt, ...) ATTR_FORMAT(1,2); +void logdebug(char const *fmt, ...) ATTR_FORMAT(1, 2); #else -static inline void logdebug(char const * fmt, ...) ATTR_FORMAT(1,2); -static inline void logdebug(char const * fmt, ...) {} +static inline void logdebug(char const *fmt, ...) ATTR_FORMAT(1, 2); +static inline void logdebug(char const *fmt, ...) {} #endif // _ _ _ __ _