Module Name: src
Committed By: kre
Date: Wed Mar 19 18:15:27 UTC 2025
Modified Files:
src/tests/lib/libc/sys: t_clock_gettime.c
Log Message:
tv_nsec prints with %ld not %jd (should fix build)
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/t_clock_gettime.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/sys/t_clock_gettime.c
diff -u src/tests/lib/libc/sys/t_clock_gettime.c:1.7 src/tests/lib/libc/sys/t_clock_gettime.c:1.8
--- src/tests/lib/libc/sys/t_clock_gettime.c:1.7 Wed Mar 19 14:27:05 2025
+++ src/tests/lib/libc/sys/t_clock_gettime.c Wed Mar 19 18:15:27 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: t_clock_gettime.c,v 1.7 2025/03/19 14:27:05 pho Exp $ */
+/* $NetBSD: t_clock_gettime.c,v 1.8 2025/03/19 18:15:27 kre Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_clock_gettime.c,v 1.7 2025/03/19 14:27:05 pho Exp $");
+__RCSID("$NetBSD: t_clock_gettime.c,v 1.8 2025/03/19 18:15:27 kre Exp $");
#include <sys/param.h>
@@ -294,7 +294,7 @@ check_resolution(const char *clockname,
RLF(rv = clock_getres(clockid, &ts), "%s", clockname);
if (rv != -1) {
ATF_CHECK_MSG(ts.tv_sec == 0,
- "The resolution of the clock %s is reported as %jd.%09jd which is"
+ "The resolution of the clock %s is reported as %jd.%09ld which is"
" lower than a second; most likely an wrong value",
clockname, ts.tv_sec, ts.tv_nsec);
}