Commit 578714e8 authored by Mark Andrews's avatar Mark Andrews Committed by Ondřej Surý
Browse files

use %u instead of %d for unsigned int arguments

(cherry picked from commit 49f8e957)
parent ac810872
...@@ -542,7 +542,7 @@ ATF_TC_BODY(countlabels, tc) { ...@@ -542,7 +542,7 @@ ATF_TC_BODY(countlabels, tc) {
NULL, 0, NULL); NULL, 0, NULL);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS); ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
printf("%s: expect %d labels\n", printf("%s: expect %u labels\n",
testcases[i].namestr, testcases[i].expect); testcases[i].namestr, testcases[i].expect);
ATF_REQUIRE_EQ(dns_name_countlabels(name), ATF_REQUIRE_EQ(dns_name_countlabels(name),
......
...@@ -1136,7 +1136,7 @@ test_purge(int sender, int type, int tag, int exp_purged) { ...@@ -1136,7 +1136,7 @@ test_purge(int sender, int type, int tag, int exp_purged) {
/* /*
* We're testing isc_task_purge. * We're testing isc_task_purge.
*/ */
printf("purge events %p,%d,%p\n", printf("purge events %p,%u,%p\n",
purge_sender, purge_type_first, purge_tag); purge_sender, purge_type_first, purge_tag);
purged = isc_task_purge(task, purge_sender, purged = isc_task_purge(task, purge_sender,
(isc_eventtype_t)purge_type_first, (isc_eventtype_t)purge_type_first,
......
...@@ -138,8 +138,8 @@ ticktock(isc_task_t *task, isc_event_t *event) { ...@@ -138,8 +138,8 @@ ticktock(isc_task_t *task, isc_event_t *event) {
} }
if (event->ev_type != expected_event_type) { if (event->ev_type != expected_event_type) {
printf("expected event type %d, got %d\n", printf("expected event type %u, got %u\n",
expected_event_type, (int) event->ev_type); expected_event_type, event->ev_type);
} }
result = isc_time_now(&now); result = isc_time_now(&now);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment