Module Name: src Committed By: jruoho Date: Fri Nov 11 05:03:38 UTC 2011
Modified Files: src/tests/lib/libc/gen: t_time.c Log Message: Fix wrong format string. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/gen/t_time.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/gen/t_time.c diff -u src/tests/lib/libc/gen/t_time.c:1.1 src/tests/lib/libc/gen/t_time.c:1.2 --- src/tests/lib/libc/gen/t_time.c:1.1 Sat Nov 5 18:07:15 2011 +++ src/tests/lib/libc/gen/t_time.c Fri Nov 11 05:03:38 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_time.c,v 1.1 2011/11/05 18:07:15 jruoho Exp $ */ +/* $NetBSD: t_time.c,v 1.2 2011/11/11 05:03:38 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_time.c,v 1.1 2011/11/05 18:07:15 jruoho Exp $"); +__RCSID("$NetBSD: t_time.c,v 1.2 2011/11/11 05:03:38 jruoho Exp $"); #include <atf-c.h> #include <errno.h> @@ -96,7 +96,7 @@ ATF_TC_BODY(time_timeofday, tc) t = time(NULL); ATF_REQUIRE(gettimeofday(&tv, NULL) == 0); - (void)fprintf(stderr, "%"PRIu64" vs. %"PRIu64"\n", + (void)fprintf(stderr, "%"PRId64" vs. %"PRId64"\n", (int64_t)t, (int64_t)tv.tv_sec); if (t != tv.tv_sec)