]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix size_t zlog_err format string warning
authorPaul Jakma <paul@jakma.org>
Thu, 29 Oct 2015 14:24:13 +0000 (14:24 +0000)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:33 +0000 (20:38 -0400)
fc1c114aa / "pimd: Fix warning", the size_t arg should have a %zu format.

pimd/pim_static.c

index cb40814a6eed79af1204435bb49897b873468270..26743b59612fe9ef9d14d4481cd17f8c2b6b5d82 100644 (file)
@@ -40,7 +40,7 @@ static struct static_route * static_route_alloc()
 
    s_route = XCALLOC(MTYPE_PIM_STATIC_ROUTE, sizeof(*s_route));
    if (!s_route) {
-     zlog_err("PIM XCALLOC(%u) failure", sizeof(*s_route));
+     zlog_err("PIM XCALLOC(%zu) failure", sizeof(*s_route));
      return 0;
    }
    return s_route;