diff options
author | paco <paco@voltanet.io> | 2018-06-18 17:49:58 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-18 17:52:56 +0200 |
commit | 2ec42b858c876dac100e939e7329eaec00f90962 (patch) | |
tree | 97aeba509fadb56029c286f24b31ccaafabb4fb6 /tests/lib | |
parent | Merge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value (diff) | |
download | frr-2ec42b858c876dac100e939e7329eaec00f90962.tar.xz frr-2ec42b858c876dac100e939e7329eaec00f90962.zip |
babeld, lib, ospfd, tests: fmt fixes (cppcheck)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_checksum.c | 2 | ||||
-rw-r--r-- | tests/lib/test_graph.c | 2 | ||||
-rw-r--r-- | tests/lib/test_timer_performance.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/test_checksum.c b/tests/lib/test_checksum.c index 3972f7676..13d35b0e9 100644 --- a/tests/lib/test_checksum.c +++ b/tests/lib/test_checksum.c @@ -506,7 +506,7 @@ int main(int argc, char **argv) printf("verify: lib failed\n"); if (ospfd != lib) { - printf("Mismatch in values at size %u\n" + printf("Mismatch in values at size %d\n" "ospfd: 0x%04x\tc0: %d\tc1: %d\tx: %d\ty: %d\n" "isisd: 0x%04x\tc0: %d\tc1: %d\tx: %d\ty: %d\n" "lib: 0x%04x\n", diff --git a/tests/lib/test_graph.c b/tests/lib/test_graph.c index f21f8b793..2801c48bc 100644 --- a/tests/lib/test_graph.c +++ b/tests/lib/test_graph.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) /* create vertices */ for (unsigned int i = 0; i < NUMNODES; i++) { - snprintf(names[i], sizeof(names[i]), "%d", i); + snprintf(names[i], sizeof(names[i]), "%u", i); gn[i] = graph_new_node(g, names[i], NULL); } diff --git a/tests/lib/test_timer_performance.c b/tests/lib/test_timer_performance.c index f9a244e25..d5f4badc8 100644 --- a/tests/lib/test_timer_performance.c +++ b/tests/lib/test_timer_performance.c @@ -92,9 +92,9 @@ int main(int argc, char **argv) t_remove = 1000 * (tv_stop.tv_sec - tv_lap.tv_sec); t_remove += (tv_stop.tv_usec - tv_lap.tv_usec) / 1000; - printf("Scheduling %d random timers took %ld.%03ld seconds.\n", + printf("Scheduling %d random timers took %lu.%03lu seconds.\n", SCHEDULE_TIMERS, t_schedule / 1000, t_schedule % 1000); - printf("Removing %d random timers took %ld.%03ld seconds.\n", + printf("Removing %d random timers took %lu.%03lu seconds.\n", REMOVE_TIMERS, t_remove / 1000, t_remove % 1000); fflush(stdout); |