diff options
author | Thomas Haller <thaller@redhat.com> | 2016-06-05 12:21:48 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-06-05 12:22:01 +0200 |
commit | 348e505b3ae098dab96ac507673da5bd8f3f7018 (patch) | |
tree | f6203686f9b8a50f30b5b1acdf0c58de5e2caa1f /src/platform/tests/test-common.h | |
parent | 466bf2f6332e15a447a40e2a92b7f4493502855a (diff) | |
download | NetworkManager-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.h | 2 |
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) /*****************************************************************************/ |