Use printf format specifier attribute for opkg_message().
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 06:19:11 +0000 (06:19 +0000)
committergraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 06:19:11 +0000 (06:19 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@584 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_message.h

index 62a6b831eb8db70725cdf2a2608345d18b6e730b..4fa2a0bfcf3cb68afdcb1b5513c476fe764f7286 100644 (file)
@@ -30,7 +30,8 @@ typedef enum {
 
 void free_error_list(void);
 void print_error_list(void);
-void opkg_message(message_level_t level, const char *fmt, ...);
+void opkg_message(message_level_t level, const char *fmt, ...)
+                               __attribute__ ((format (printf, 2, 3)));
 
 #define opkg_msg(l, fmt, args...) \
        do { \