mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct/nsenter: annotate write_log() prototype
...so the compiler can warn about mismatches between the format string and varargs. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
committed by
Aleksa Sarai
parent
35fddfd28f
commit
890dceeebf
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
void setup_logpipe(void);
|
||||
|
||||
void write_log(int level, const char *format, ...);
|
||||
void write_log(int level, const char *format, ...) __attribute__((format(printf, 2, 3)));
|
||||
|
||||
extern int logfd;
|
||||
#define bail(fmt, ...) \
|
||||
|
||||
Reference in New Issue
Block a user