Module Name:    src
Committed By:   pooka
Date:           Sun Aug 16 11:06:54 UTC 2015

Modified Files:
        src/sys/rump/librump/rumpkern: intr.c

Log Message:
Don't use KASSERT() to test for external return values, use panic()

from Robert Millan <r...@freebsd.org>


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/intr.c
diff -u src/sys/rump/librump/rumpkern/intr.c:1.52 src/sys/rump/librump/rumpkern/intr.c:1.53
--- src/sys/rump/librump/rumpkern/intr.c:1.52	Wed Apr 22 17:38:33 2015
+++ src/sys/rump/librump/rumpkern/intr.c	Sun Aug 16 11:06:54 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.52 2015/04/22 17:38:33 pooka Exp $	*/
+/*	$NetBSD: intr.c,v 1.53 2015/08/16 11:06:54 pooka Exp $	*/
 
 /*
  * Copyright (c) 2008-2010, 2015 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.52 2015/04/22 17:38:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.53 2015/08/16 11:06:54 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -127,7 +127,10 @@ doclock(void *noarg)
 
 		error = rumpuser_clock_sleep(RUMPUSER_CLOCK_ABSMONO,
 		    curclock.tv_sec, curclock.tv_nsec);
-		KASSERT(!error);
+		if (error) {
+			panic("rumpuser_clock_sleep failed with error %d",
+			    error);
+		}
 		timespecadd(&curclock, &thetick, &curclock);
 	}
 }

Reply via email to