[master] e54d67342 Fix printf format for uintmax_t.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jan 30 08:32:09 UTC 2023
commit e54d67342b44e4f0c7935f438c26c6dc5045d1ce
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 30 08:30:42 2023 +0000
Fix printf format for uintmax_t.
Spotted by: Coverity
diff --git a/lib/libvarnishapi/vsl_dispatch.c b/lib/libvarnishapi/vsl_dispatch.c
index 3e990fb36..a28bc70b1 100644
--- a/lib/libvarnishapi/vsl_dispatch.c
+++ b/lib/libvarnishapi/vsl_dispatch.c
@@ -1096,7 +1096,7 @@ static int
vtx_diag_tag(struct vtx *vtx, const uint32_t *ptr, const char *reason)
{
- vtx_synth_rec(vtx, SLT_VSL, "%s (%u:%s \"%.*s\")", reason, VSL_ID(ptr),
+ vtx_synth_rec(vtx, SLT_VSL, "%s (%ju:%s \"%.*s\")", reason, VSL_ID(ptr),
VSL_tags[VSL_TAG(ptr)], (int)VSL_LEN(ptr), VSL_CDATA(ptr));
return (-1);
}
More information about the varnish-commit
mailing list