diff options
| author | Russ White <russ@riw.us> | 2021-02-16 07:46:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-16 07:46:40 -0500 |
| commit | f37a846db5392e8104c989d366b8c7b42363b619 (patch) | |
| tree | 9da1780984f60a4b3511ae9120c87d8610cc8a7d /lib/link_state.c | |
| parent | 40c1b0e6b8ad0a76f159885cb1a866f645b917fd (diff) | |
| parent | f1db813dbbe6e4668bc5d3d4cb1506de7b36fabe (diff) | |
Merge pull request #8093 from opensourcerouting/format-strings-20210216
*: fix format string SNAFUs
Diffstat (limited to 'lib/link_state.c')
| -rw-r--r-- | lib/link_state.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/link_state.c b/lib/link_state.c index 6bd7ef703c..ecf0d0698d 100644 --- a/lib/link_state.c +++ b/lib/link_state.c @@ -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 |
