[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] e54d67342 Fix printf format for uintmax_t.
From:       Poul-Henning Kamp <phk () FreeBSD ! org>
Date:       2023-01-30 8:32:09
Message-ID: 20230130083209.B5898107AD1 () lists ! varnish-cache ! org
[Download RAW message or body]


commit e54d67342b44e4f0c7935f438c26c6dc5045d1ce
Author: Poul-Henning Kamp <phk@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);
 }
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic