summaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-05 17:55:52 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-05-05 17:55:52 -0700
commitb374f6d47e4953aa20795ac6b5ba2709dab382cf (patch)
tree4670693ea68db8dd7bb9bc3143e524b61f18afbc /include/log.h
parentd924889a050c1a325b0edc118e8ad6e910f7d60a (diff)
downloadconnman-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.h9
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: