[master] b43d539c9 cocci: Apply printf_nofmt.cocci again

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Aug 26 14:56:06 UTC 2022

commit b43d539c9737e3a878ec3a9d9a1b4e03354fe5a4
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Aug 26 15:26:26 2022 +0200

    cocci: Apply printf_nofmt.cocci again

diff --git a/lib/libvcc/vcc_vmod.c b/lib/libvcc/vcc_vmod.c
index cfa99d1c6..b4804cfff 100644
--- a/lib/libvcc/vcc_vmod.c
+++ b/lib/libvcc/vcc_vmod.c
@@ -271,7 +271,7 @@ vcc_VmodLoad(struct vcc *tl, struct vmod_import *vim)
 		    "Different version of VMOD %.*s already loaded\n",
 		vcc_ErrWhere(tl, vim->t_mod);
-		VSB_printf(tl->sb, "Previous import at:\n");
+		VSB_cat(tl->sb, "Previous import at:\n");
 		vcc_ErrWhere(tl, vim2->t_mod);
@@ -364,9 +364,9 @@ vcc_emit_setup(struct vcc *tl, const struct vmod_import *vim)
 	VSB_cat(tl->symtab, "\t\"type\": \"$VMOD\",\n");
 	VSB_printf(tl->symtab, "\t\"name\": \"%.*s\",\n", PF(mod));
 	if (vim->from_vext)
-		VSB_printf(tl->symtab, "\t\"vext\": true,\n");
+		VSB_cat(tl->symtab, "\t\"vext\": true,\n");
-		VSB_printf(tl->symtab, "\t\"vext\": false,\n");
+		VSB_cat(tl->symtab, "\t\"vext\": false,\n");
 	VSB_printf(tl->symtab, "\t\"file\": \"%s\",\n", vim->path);
 	VSB_printf(tl->symtab, "\t\"dst\": \"./vmod_cache/_vmod_%.*s.%s\"\n",
 	    PF(mod), vim->file_id);

More information about the varnish-commit mailing list