From: Vincent Bernat Date: Thu, 8 Dec 2022 17:29:42 +0000 (+0100) Subject: tests: fix warnings about format string X-Git-Tag: 1.0.17~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93e336d36b83cd99f8a859c43417360caf704fad;p=thirdparty%2Flldpd.git tests: fix warnings about format string --- diff --git a/tests/check_snmp.c b/tests/check_snmp.c index fb140979..e076f4f6 100644 --- a/tests/check_snmp.c +++ b/tests/check_snmp.c @@ -1058,7 +1058,7 @@ snmp_compare(struct tree_node *n, u_char *result, size_t varlen, oid *target, "Inappropriate length for integer type for OID %s", repr); memcpy(&value, result, sizeof(value)); fail_unless(n->value.integer == value, - "For OID %s, expected value %u but got %u instead", repr, + "For OID %s, expected value %lu but got %lu instead", repr, n->value.integer, value); break; default: