diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-05 17:55:52 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-05 17:55:52 -0700 |
commit | b374f6d47e4953aa20795ac6b5ba2709dab382cf (patch) | |
tree | 4670693ea68db8dd7bb9bc3143e524b61f18afbc /include/log.h | |
parent | d924889a050c1a325b0edc118e8ad6e910f7d60a (diff) | |
download | connman-b374f6d47e4953aa20795ac6b5ba2709dab382cf.tar.gz connman-b374f6d47e4953aa20795ac6b5ba2709dab382cf.tar.bz2 connman-b374f6d47e4953aa20795ac6b5ba2709dab382cf.zip |
Add printf format checking attribute
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/log.h b/include/log.h index e9ee8e49..d154ba7c 100644 --- a/include/log.h +++ b/include/log.h @@ -32,9 +32,12 @@ extern "C" { * @short_description: Functions for logging error and debug information */ -extern void connman_info(const char *format, ...); -extern void connman_error(const char *format, ...); -extern void connman_debug(const char *format, ...); +extern void connman_info(const char *format, ...) + __attribute__((format(printf, 1, 2))); +extern void connman_error(const char *format, ...) + __attribute__((format(printf, 1, 2))); +extern void connman_debug(const char *format, ...) + __attribute__((format(printf, 1, 2))); /** * DBG: |