projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df1fd36
)
compositor: format check for weston_log arguments
author
Pekka Paalanen
<ppaalanen@gmail.com>
Mon, 6 Aug 2012 11:57:04 +0000
(14:57 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 9 Aug 2012 14:27:28 +0000
(10:27 -0400)
Add gcc format check attribute to the weston_log() and
weston_log_continue() functions.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.h
patch
|
blob
|
history
diff --git
a/src/compositor.h
b/src/compositor.h
index
979ce66
..
47301fa
100644
(file)
--- a/
src/compositor.h
+++ b/
src/compositor.h
@@
-706,9
+706,11
@@
weston_log_file_open(const char *filename);
void
weston_log_file_close(void);
int
-weston_log(const char *fmt, ...);
+weston_log(const char *fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
int
-weston_log_continue(const char *fmt, ...);
+weston_log_continue(const char *fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
enum {
TTY_ENTER_VT,