]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/utils: ensure consistent use of KR_* macros
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 14 Apr 2020 11:28:21 +0000 (13:28 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 15 Apr 2020 08:28:51 +0000 (10:28 +0200)
The macros that expand to __attribute__(x) should precede function
declaration, consistently with all the other code.

lib/utils.h

index 2eb4b7636837cb582d113e4e7d65a74a1dfcf1bb..886ef871102320579b9f55747dcaae2e7289d9d1 100644 (file)
@@ -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. */