Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Do something sane with a DIAGNOSTIC condition in an ...



details:   https://anonhg.NetBSD.org/src/rev/97dc42eb3a35
branches:  trunk
changeset: 495778:97dc42eb3a35
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Aug 06 00:21:57 2000 +0000

description:
Do something sane with a DIAGNOSTIC condition in an non-DIAGNOSTIC
kernel.

diffstat:

 sys/uvm/uvm_anon.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r a46c6652d057 -r 97dc42eb3a35 sys/uvm/uvm_anon.c
--- a/sys/uvm/uvm_anon.c        Sun Aug 06 00:19:04 2000 +0000
+++ b/sys/uvm/uvm_anon.c        Sun Aug 06 00:21:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_anon.c,v 1.8 2000/08/05 23:40:55 thorpej Exp $     */
+/*     $NetBSD: uvm_anon.c,v 1.9 2000/08/06 00:21:57 thorpej Exp $     */
 
 /*
  *
@@ -502,9 +502,11 @@
 
                return FALSE;
 
+       default:
 #ifdef DIAGNOSTIC
-       default:
                panic("anon_pagein: uvmfault_anonget -> %d", rv);
+#else
+               return FALSE;
 #endif
        }
 



Home | Main Index | Thread Index | Old Index