[master] 7da412fa4 use v_printflike_
Nils Goroll
nils.goroll at uplex.de
Sat Jan 16 11:55:06 UTC 2021
commit 7da412fa4006eb48e4a31f00deac64cd763d0cd0
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sat Jan 16 12:22:23 2021 +0100
use v_printflike_
see previous commit: to hopefully help avoid the same oversight
with mylog()
diff --git a/vmod/vmod_debug.c b/vmod/vmod_debug.c
index 4a29a8049..4f4a3f32d 100644
--- a/vmod/vmod_debug.c
+++ b/vmod/vmod_debug.c
@@ -64,7 +64,8 @@ static struct VSC_debug *vsc = NULL;
static int loads;
static const int store_ip_token;
static const int fail_rollback_token;
-extern void mylog(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...);
+extern void mylog(struct vsl_log *vsl, enum VSL_tag_e tag,
+ const char *fmt, ...) v_printflike_(3,4);
/**********************************************************************/
diff --git a/vmod/vmod_debug_obj.c b/vmod/vmod_debug_obj.c
index 25ec4733d..19386d985 100644
--- a/vmod/vmod_debug_obj.c
+++ b/vmod/vmod_debug_obj.c
@@ -39,7 +39,8 @@
#include "vcc_debug_if.h"
// vmod_debug.c
-extern void mylog(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...);
+extern void mylog(struct vsl_log *vsl, enum VSL_tag_e tag,
+ const char *fmt, ...) v_printflike_(3,4);
struct xyzzy_debug_obj {
unsigned magic;
More information about the varnish-commit
mailing list