From 10ac942adc5988e9dd17f4189cd08fc2dd1e6650 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 4 Nov 2020 16:21:58 +0100 Subject: OSPFv3: Use %zu to print sizeof values Moreover: Fix indentation. --- print-ospf6.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'print-ospf6.c') diff --git a/print-ospf6.c b/print-ospf6.c index 29014d74..1b862b30 100644 --- a/print-ospf6.c +++ b/print-ospf6.c @@ -391,11 +391,11 @@ ospf6_print_lshdr(netdissect_options *ndo, if ((const u_char *)(lshp + 1) > dataend) goto trunc; - ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %u", - GET_IPADDR_STRING(lshp->ls_router), - GET_BE_U_4(lshp->ls_seq), - GET_BE_U_2(lshp->ls_age), - GET_BE_U_2(lshp->ls_length)-(u_int)sizeof(struct lsa6_hdr)); + ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %zu", + GET_IPADDR_STRING(lshp->ls_router), + GET_BE_U_4(lshp->ls_seq), + GET_BE_U_2(lshp->ls_age), + GET_BE_U_2(lshp->ls_length)-sizeof(struct lsa6_hdr)); ospf6_print_ls_type(ndo, GET_BE_U_2(lshp->ls_type), &lshp->ls_stateid); -- cgit v1.2.1