Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Change KASSERT to KASSERTMSG.



details:   https://anonhg.NetBSD.org/src/rev/32f88b6db2d3
branches:  trunk
changeset: 766002:32f88b6db2d3
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jun 12 20:38:10 2011 +0000

description:
Change KASSERT to KASSERTMSG.

diffstat:

 sys/arch/powerpc/powerpc/process_machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 42fabb3cc36e -r 32f88b6db2d3 sys/arch/powerpc/powerpc/process_machdep.c
--- a/sys/arch/powerpc/powerpc/process_machdep.c        Sun Jun 12 20:29:25 2011 +0000
+++ b/sys/arch/powerpc/powerpc/process_machdep.c        Sun Jun 12 20:38:10 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.31 2011/05/02 02:01:33 matt Exp $        */
+/*     $NetBSD: process_machdep.c,v 1.32 2011/06/12 20:38:10 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.31 2011/05/02 02:01:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.32 2011/06/12 20:38:10 matt Exp $");
 
 #include "opt_altivec.h"
 
@@ -89,7 +89,8 @@
                memset(fpregs, 0, sizeof (*fpregs));
 #ifdef PPC_HAVE_FPU
        } else {
-               KASSERT(l == curlwp);
+               KASSERTMSG(l == curlwp,
+                   ("%s: l (%p) != curlwp (%p)", __func__, l, curlwp));
                fpu_save();
 #endif
        }



Home | Main Index | Thread Index | Old Index