diff options
author | F. Aragon <paco@voltanet.io> | 2018-09-13 12:05:20 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-09-13 12:05:20 +0200 |
commit | 57b0ac508ef6f5e1d0f802b8a258f5cf48d11256 (patch) | |
tree | c6d21c9b42817cdfdee1520b4217962880ec96df /nhrpd | |
parent | Merge branch 'warnings' (diff) | |
download | frr-57b0ac508ef6f5e1d0f802b8a258f5cf48d11256.tar.xz frr-57b0ac508ef6f5e1d0f802b8a258f5cf48d11256.zip |
nhrpd: missing operand added
Detected using -Wgnu-conditional-omitted-operand
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/nhrp_peer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index e051830f8..203d4aa98 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -814,8 +814,9 @@ static void nhrp_packet_debug(struct zbuf *zb, const char *dir) reply = packet_types[hdr->type].type == PACKET_REPLY; debugf(NHRP_DEBUG_COMMON, "%s %s(%d) %s -> %s", dir, - packet_types[hdr->type].name ?: "Unknown", hdr->type, - reply ? buf[1] : buf[0], reply ? buf[0] : buf[1]); + (packet_types[hdr->type].name ? packet_types[hdr->type].name + : "Unknown"), + hdr->type, reply ? buf[1] : buf[0], reply ? buf[0] : buf[1]); } static int proto2afi(uint16_t proto) |