diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-16 03:17:09 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-09 14:58:12 -0500 |
commit | bae7baca80ea532372c7924fe5734808282c5b2e (patch) | |
tree | 5862965d7cd6684173f7e3068d110d6b2f3eed36 /src/libudev/libudev-private.h | |
parent | bc681b6fb2639772af71acc9fc4614a1b5932a7e (diff) |
macro: clean up usage of gcc attributes
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev-private.h')
-rw-r--r-- | src/libudev/libudev-private.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h index 54c51acc23..18bc853a5a 100644 --- a/src/libudev/libudev-private.h +++ b/src/libudev/libudev-private.h @@ -48,8 +48,7 @@ /* libudev.c */ void udev_log(struct udev *udev, int priority, const char *file, int line, const char *fn, - const char *format, ...) - __attribute__((format(printf, 6, 7))); + const char *format, ...) _printf_(6, 7); int udev_get_rules_path(struct udev *udev, char **path[], usec_t *ts_usec[]); struct udev_list_entry *udev_add_property(struct udev *udev, const char *key, const char *value); struct udev_list_entry *udev_get_properties_list_entry(struct udev *udev); @@ -175,5 +174,6 @@ int util_delete_path(struct udev *udev, const char *path); uid_t util_lookup_user(struct udev *udev, const char *user); gid_t util_lookup_group(struct udev *udev, const char *group); int util_resolve_subsys_kernel(struct udev *udev, const char *string, char *result, size_t maxsize, int read_value); -ssize_t print_kmsg(const char *fmt, ...) __attribute__((format(printf, 1, 2))); +ssize_t print_kmsg(const char *fmt, ...) _printf_(1, 2); + #endif |