Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys don't print "long" with "%zu".



details:   https://anonhg.NetBSD.org/src/rev/b67af930ab05
branches:  trunk
changeset: 318913:b67af930ab05
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed May 09 08:45:03 2018 +0000
description:
don't print "long" with "%zu".

diffstat:

 tests/lib/libc/sys/t_getrusage.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1c31a12c8216 -r b67af930ab05 tests/lib/libc/sys/t_getrusage.c
--- a/tests/lib/libc/sys/t_getrusage.c  Wed May 09 08:39:54 2018 +0000
+++ b/tests/lib/libc/sys/t_getrusage.c  Wed May 09 08:45:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getrusage.c,v 1.7 2018/05/09 06:32:52 martin Exp $ */
+/* $NetBSD: t_getrusage.c,v 1.8 2018/05/09 08:45:03 mrg Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_getrusage.c,v 1.7 2018/05/09 06:32:52 martin Exp $");
+__RCSID("$NetBSD: t_getrusage.c,v 1.8 2018/05/09 08:45:03 mrg Exp $");
 
 #include <sys/resource.h>
 #include <sys/time.h>
@@ -154,7 +154,7 @@
 
        ATF_REQUIRE(getrusage(RUSAGE_SELF, &ru) == 0);
        ATF_REQUIRE_MSG(maxrss < ru.ru_maxrss,
-           "maxrss: %zu, ru.ru_maxrss: %zu", maxrss, ru.ru_maxrss);
+           "maxrss: %ld, ru.ru_maxrss: %ld", maxrss, ru.ru_maxrss);
 }
 
 ATF_TC(getrusage_msgsnd);



Home | Main Index | Thread Index | Old Index