Commit c4ca99c0 authored by Mark Andrews's avatar Mark Andrews

use %u instead of %d

parent 5c017fd3
/*
* Copyright (C) 1998-2001, 2004, 2007, 2008, 2012-2017 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2004, 2007, 2008, 2012-2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -42,8 +42,8 @@ my_send(isc_task_t *task, isc_event_t *event) {
sock = event->ev_sender;
dev = (isc_socketevent_t *)event;
printf("my_send: %s task %p\n\t(sock %p, base %p, length %d, n %d, "
"result %d)\n",
printf("my_send: %s task %p\n\t(sock %p, base %p, length %u, n %u, "
"result %u)\n",
(char *)(event->ev_arg), task, sock,
dev->region.base, dev->region.length,
dev->n, dev->result);
......@@ -70,7 +70,7 @@ my_recv(isc_task_t *task, isc_event_t *event) {
sock = event->ev_sender;
dev = (isc_socketevent_t *)event;
printf("Socket %s (sock %p, base %p, length %d, n %d, result %d)\n",
printf("Socket %s (sock %p, base %p, length %u, n %u, result %u)\n",
(char *)(event->ev_arg), sock,
dev->region.base, dev->region.length,
dev->n, dev->result);
......@@ -130,8 +130,8 @@ my_http_get(isc_task_t *task, isc_event_t *event) {
sock = event->ev_sender;
dev = (isc_socketevent_t *)event;
printf("my_http_get: %s task %p\n\t(sock %p, base %p, length %d, "
"n %d, result %d)\n",
printf("my_http_get: %s task %p\n\t(sock %p, base %p, length %u, "
"n %u, result %u)\n",
(char *)(event->ev_arg), task, sock,
dev->region.base, dev->region.length,
dev->n, dev->result);
......@@ -160,7 +160,7 @@ my_connect(isc_task_t *task, isc_event_t *event) {
sock = event->ev_sender;
dev = (isc_socket_connev_t *)event;
printf("%s: Connection result: %d\n", (char *)(event->ev_arg),
printf("%s: Connection result: %u\n", (char *)(event->ev_arg),
dev->result);
if (dev->result != ISC_R_SUCCESS) {
......@@ -200,7 +200,7 @@ my_listen(isc_task_t *task, isc_event_t *event) {
dev = (isc_socket_newconnev_t *)event;
printf("newcon %s (task %p, oldsock %p, newsock %p, result %d)\n",
printf("newcon %s (task %p, oldsock %p, newsock %p, result %u)\n",
name, task, event->ev_sender, dev->newsocket, dev->result);
fflush(stdout);
......@@ -279,7 +279,7 @@ main(int argc, char *argv[]) {
workers = 8192;
} else
workers = 2;
printf("%d workers\n", workers);
printf("%u workers\n", workers);
if (isc_net_probeipv6() == ISC_R_SUCCESS)
pf = PF_INET6;
......
......@@ -602,7 +602,7 @@
./bin/tests/serial_test.c C 1999,2000,2001,2003,2004,2007,2015,2016
./bin/tests/shutdown_test.c C 1998,1999,2000,2001,2004,2007,2011,2013,2016,2017,2018
./bin/tests/sig0_test.c C 2000,2001,2004,2005,2007,2008,2009,2012,2015,2016
./bin/tests/sock_test.c C 1998,1999,2000,2001,2004,2007,2008,2012,2013,2014,2015,2016,2017
./bin/tests/sock_test.c C 1998,1999,2000,2001,2004,2007,2008,2012,2013,2014,2015,2016,2017,2018
./bin/tests/sockaddr/Makefile.in MAKE 1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017
./bin/tests/sockaddr/t_sockaddr.c C 1999,2000,2001,2004,2007,2013,2016
./bin/tests/sockaddr/win32/t_sockaddr.vcxproj.filters.in X 2013,2015
......
Markdown is supported
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