Skip to content

Commit

Permalink
tests: fix warnings about format string
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Dec 8, 2022
1 parent e78af81 commit 93e336d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/check_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 93e336d

Please sign in to comment.