Source-Changes-HG archive

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

[src/trunk]: src/tests/rump/kernspace Fix build



details:   https://anonhg.NetBSD.org/src/rev/10dc360f25c7
branches:  trunk
changeset: 828710:10dc360f25c7
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Dec 28 07:46:34 2017 +0000

description:
Fix build

diffstat:

 tests/rump/kernspace/workqueue.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r fc21581d2455 -r 10dc360f25c7 tests/rump/kernspace/workqueue.c
--- a/tests/rump/kernspace/workqueue.c  Thu Dec 28 07:10:25 2017 +0000
+++ b/tests/rump/kernspace/workqueue.c  Thu Dec 28 07:46:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: workqueue.c,v 1.5 2017/12/28 07:10:25 ozaki-r Exp $    */
+/*     $NetBSD: workqueue.c,v 1.6 2017/12/28 07:46:34 ozaki-r Exp $    */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: workqueue.c,v 1.5 2017/12/28 07:10:25 ozaki-r Exp $");
+__RCSID("$NetBSD: workqueue.c,v 1.6 2017/12/28 07:46:34 ozaki-r Exp $");
 #endif /* !lint */
 
 #include <sys/param.h>
@@ -97,13 +97,13 @@
        sc = create_sc();
 
 #define ITERATIONS 12435
-       for (size_t i = 0; i < ITERATIONS; ++i) {
+       for (int i = 0; i < ITERATIONS; ++i) {
                int e;
                mutex_enter(&sc->mtx);
                workqueue_enqueue(sc->wq, &sc->wk, NULL);
                e = cv_timedwait(&sc->cv, &sc->mtx, hz * 2);
                if (e != 0)
-                       panic("cv_timedwait timed out (i=%lu)", i);
+                       panic("cv_timedwait timed out (i=%d)", i);
                mutex_exit(&sc->mtx);
        }
 



Home | Main Index | Thread Index | Old Index