mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
Enable printf format attributes to logit() and flog()
We don't want repeats of issue #236, so let's start by tracking down any bugs hidden in logging functions. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
bc2ffbc767
commit
6d58c9ed0b
1 file changed
+2
-2
@@ -50,7 +50,7 @@ void log_exit (void);
|
|||||||
|
|
||||||
void log_debug (void);
|
void log_debug (void);
|
||||||
|
|
||||||
void logit (int prio, const char *fmt, ...);
|
void logit (int prio, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||||
void flog (char *file, const char *fmt, ...);
|
void flog (char *file, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||||
|
|
||||||
#endif /* FINIT_LOG_H_ */
|
#endif /* FINIT_LOG_H_ */
|
||||||
Reference in new issue
Block a user