use %u instead of %d

This commit is contained in:
Mark Andrews 2018-02-14 18:41:08 +11:00
parent 6bbecea663
commit 27ca8bc72f
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 1998-2001, 2004, 2007, 2011, 2013, 2016, 2017 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2004, 2007, 2011, 2013, 2016-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
@ -139,7 +139,7 @@ new_task(isc_mem_t *mctx, const char *name) {
INSIST(strlen(name) < sizeof(ti->name));
strlcpy(ti->name, name, sizeof(ti->name));
} else {
snprintf(ti->name, sizeof(ti->name), "%d", task_count);
snprintf(ti->name, sizeof(ti->name), "%u", task_count);
}
RUNTIME_CHECK(isc_task_create(task_manager, 0, &ti->task) ==
ISC_R_SUCCESS);
@ -175,7 +175,7 @@ main(int argc, char *argv[]) {
workers = 8192;
} else
workers = 2;
printf("%d workers\n", workers);
printf("%u workers\n", workers);
mctx = NULL;
RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);

View file

@ -738,7 +738,7 @@
./bin/tests/resolver/win32/t_resolver.vcxproj.user X 2013
./bin/tests/rwlock_test.c C 1998,1999,2000,2001,2004,2005,2007,2013,2016,2017,2018
./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
./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/sockaddr/Makefile.in MAKE 1999,2000,2001,2002,2004,2007,2009,2012,2014,2016