]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: fix format string SNAFUs 8093/head
authorDavid Lamparter <equinox@diac24.net>
Mon, 15 Feb 2021 23:46:48 +0000 (00:46 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 15 Feb 2021 23:47:51 +0000 (00:47 +0100)
Signed-off-by: David Lamparter <equinox@diac24.net>
bfdd/dplane.c
lib/link_state.c
ospfd/ospf_lsa.c

index b8f0aadd9369842fd2cefa0527248ed1b7f2afa9..66b79f3b13057640011cf949f8d7b205e9d78f82 100644 (file)
@@ -169,8 +169,8 @@ static void bfd_dplane_debug_message(const struct bfddp_message *msg)
                                   &msg->data.session.dst);
                else
                        snprintfrr(addrs, sizeof(addrs), "src=%pI4 dst=%pI4",
-                                  &msg->data.session.src,
-                                  &msg->data.session.dst);
+                                  (struct in_addr *)&msg->data.session.src,
+                                  (struct in_addr *)&msg->data.session.dst);
 
                buf[0] = 0;
                if (flags & SESSION_CBIT)
index 6bd7ef703c42f2bebc4cd991d9551a86be9efbb8..ecf0d0698dfc56140d61b5bacbbf455536feb7b0 100644 (file)
@@ -1246,7 +1246,7 @@ void ls_dump_ted(struct ls_ted *ted)
                for (ALL_LIST_ELEMENTS_RO(vertex->incoming_edges, lst_node,
                                          vertex_edge)) {
                        zlog_debug(
-                               "        inc edge key:%lldn attr key:%pI4 loc:(%pI4) rmt:(%pI4)",
+                               "        inc edge key:%"PRIu64"n attr key:%pI4 loc:(%pI4) rmt:(%pI4)",
                                vertex_edge->key,
                                &vertex_edge->attributes->adv.id.ip.addr,
                                &vertex_edge->attributes->standard.local,
@@ -1255,7 +1255,7 @@ void ls_dump_ted(struct ls_ted *ted)
                for (ALL_LIST_ELEMENTS_RO(vertex->outgoing_edges, lst_node,
                                          vertex_edge)) {
                        zlog_debug(
-                               "        out edge key:%lld  attr key:%pI4  loc:(%pI4) rmt:(%pI4)",
+                               "        out edge key:%"PRIu64"  attr key:%pI4  loc:(%pI4) rmt:(%pI4)",
                                vertex_edge->key,
                                &vertex_edge->attributes->adv.id.ip.addr,
                                &vertex_edge->attributes->standard.local,
@@ -1264,7 +1264,8 @@ void ls_dump_ted(struct ls_ted *ted)
        }
        frr_each(edges, &ted->edges, edge) {
                ls_edge2msg(&msg, edge);
-               zlog_debug("    Ted edge key:%lld src:%s dst:%s", edge->key,
+               zlog_debug("    Ted edge key:%"PRIu64" src:%s dst:%s",
+                          edge->key,
                           edge->source ? edge->source->node->name
                                        : "no_source",
                           edge->destination ? edge->destination->node->name
index 5a48eebe4946369dad48f49ff4961a7c13fd512c..6bde5467b2785a9ebe035cc47db66ff1323f27a5 100644 (file)
@@ -2248,10 +2248,9 @@ void ospf_external_lsa_refresh_type(struct ospf *ospf, uint8_t type,
                                                            lsa,
                                                            EXTNL_LSA_AGGR))
                                                        zlog_debug(
-                                                               "%s: Send Aggreate LSA (%pFX/%d)",
+                                                               "%s: Send Aggreate LSA (%pFX)",
                                                                __func__,
-                                                               &aggr->p.prefix,
-                                                               aggr->p.prefixlen);
+                                                               &aggr->p);
 
                                                ospf_originate_summary_lsa(
                                                        ospf, aggr, ei);