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 Remove a debug printf(), and fix the form...



details:   https://anonhg.NetBSD.org/src/rev/866c81ad4281
branches:  trunk
changeset: 782591:866c81ad4281
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Nov 08 04:58:44 2012 +0000

description:
Remove a debug printf(), and fix the format in another.

Should resolve build break.

diffstat:

 tests/lib/libc/gen/t_sleep.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 4dc5151810e4 -r 866c81ad4281 tests/lib/libc/gen/t_sleep.c
--- a/tests/lib/libc/gen/t_sleep.c      Thu Nov 08 03:16:04 2012 +0000
+++ b/tests/lib/libc/gen/t_sleep.c      Thu Nov 08 04:58:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sleep.c,v 1.1 2012/11/08 03:13:47 pgoyette Exp $ */
+/* $NetBSD: t_sleep.c,v 1.2 2012/11/08 04:58:44 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2006 Frank Kardel
@@ -135,8 +135,6 @@
        ATF_REQUIRE_MSG(rtc != -1 || kerrno == EINTR, "kevent: %s",
            strerror(errno));
 
-printf("delay %ld.%09ld, tmo %d\n", delay->tv_sec, delay->tv_nsec, tmo);
-
        if (rtc == 0)
            ATF_REQUIRE_MSG((delay->tv_sec * BILLION + delay->tv_nsec -
                            tmo * MILLION) <= 0,
@@ -266,7 +264,7 @@
                delta3 *= round;
 
                ATF_REQUIRE_MSG(delta3 <= FUZZ && delta3 >= -FUZZ,
-                   "Elapsed time %ld exceeds allowable fuzz %lld",
+                   "Elapsed time %"PRId64" exceeds allowable fuzz %lld",
                    delta3, FUZZ);
 
                delta3 = (int64_t)tslp.tv_sec * 2 * BILLION;



Home | Main Index | Thread Index | Old Index