summaryrefslogtreecommitdiff
path: root/src/platform/tests/test-common.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-06-05 12:21:48 +0200
committerThomas Haller <thaller@redhat.com>2016-06-05 12:22:01 +0200
commit348e505b3ae098dab96ac507673da5bd8f3f7018 (patch)
treef6203686f9b8a50f30b5b1acdf0c58de5e2caa1f /src/platform/tests/test-common.h
parent466bf2f6332e15a447a40e2a92b7f4493502855a (diff)
downloadNetworkManager-348e505b3ae098dab96ac507673da5bd8f3f7018.tar.gz
macros: add macro _nm_printf() for function attribute
Diffstat (limited to 'src/platform/tests/test-common.h')
-rw-r--r--src/platform/tests/test-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/tests/test-common.h b/src/platform/tests/test-common.h
index 143b9b5272..87fccee234 100644
--- a/src/platform/tests/test-common.h
+++ b/src/platform/tests/test-common.h
@@ -84,7 +84,7 @@ void link_callback (NMPlatform *platform, NMPObjectType obj_type, int ifindex, N
/*****************************************************************************/
-int nmtstp_run_command (const char *format, ...) __attribute__((__format__ (__printf__, 1, 2)));
+int nmtstp_run_command (const char *format, ...) _nm_printf (1, 2);
#define nmtstp_run_command_check(...) do { g_assert_cmpint (nmtstp_run_command (__VA_ARGS__), ==, 0); } while (0)
/*****************************************************************************/