From: Tomas Krizek Date: Tue, 14 Apr 2020 11:28:21 +0000 (+0200) Subject: lib/utils: ensure consistent use of KR_* macros X-Git-Tag: v5.1.0~12^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b4d28b50b72ed9f8b53eef3bc62e434f43c6809;p=thirdparty%2Fknot-resolver.git lib/utils: ensure consistent use of KR_* macros The macros that expand to __attribute__(x) should precede function declaration, consistently with all the other code. --- diff --git a/lib/utils.h b/lib/utils.h index 2eb4b7636..886ef8711 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -69,9 +69,9 @@ KR_EXPORT bool kr_verbose_set(bool status); * @param source message source * @param fmt message format */ +KR_EXPORT KR_PRINTF(5) void kr_log_req(const struct kr_request * const req, uint32_t qry_uid, - const unsigned int indent, const char *source, const char *fmt, ...) -KR_EXPORT KR_PRINTF(5); + const unsigned int indent, const char *source, const char *fmt, ...); /** * Log a message through the request log handler or stdout. @@ -80,8 +80,8 @@ KR_EXPORT KR_PRINTF(5); * @param source message source * @param fmt message format */ -void kr_log_q(const struct kr_query *qry, const char *source, const char *fmt, ...) -KR_EXPORT KR_PRINTF(3); +KR_EXPORT KR_PRINTF(3) +void kr_log_q(const struct kr_query *qry, const char *source, const char *fmt, ...); #ifdef NOVERBOSELOG /* Efficient compile-time disabling of verbose messages. */