Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/gen Fix wrong format string.



details:   https://anonhg.NetBSD.org/src/rev/2bfa2fb55b9d
branches:  trunk
changeset: 771132:2bfa2fb55b9d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Nov 11 05:03:38 2011 +0000

description:
Fix wrong format string.

diffstat:

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

diffs (27 lines):

diff -r d60e0d68a7fb -r 2bfa2fb55b9d tests/lib/libc/gen/t_time.c
--- a/tests/lib/libc/gen/t_time.c       Fri Nov 11 01:34:18 2011 +0000
+++ b/tests/lib/libc/gen/t_time.c       Fri Nov 11 05:03:38 2011 +0000
@@ -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 @@
        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)



Home | Main Index | Thread Index | Old Index