Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe rf_panicbuf is already format, so don't pa...
details: https://anonhg.NetBSD.org/src/rev/86c95b156e0d
branches: trunk
changeset: 765270:86c95b156e0d
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 23 21:49:35 2011 +0000
description:
rf_panicbuf is already format, so don't pass it as format string to
panic()
diffstat:
sys/dev/raidframe/rf_general.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7fa165e2fb63 -r 86c95b156e0d sys/dev/raidframe/rf_general.h
--- a/sys/dev/raidframe/rf_general.h Mon May 23 21:34:47 2011 +0000
+++ b/sys/dev/raidframe/rf_general.h Mon May 23 21:49:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_general.h,v 1.18 2010/11/13 13:52:10 uebayasi Exp $ */
+/* $NetBSD: rf_general.h,v 1.19 2011/05/23 21:49:35 joerg Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -55,7 +55,7 @@
extern char rf_panicbuf[];
-#define RF_PANIC() {rf_print_panic_message(__LINE__,__FILE__); panic(rf_panicbuf);}
+#define RF_PANIC() {rf_print_panic_message(__LINE__,__FILE__); panic("%s", rf_panicbuf);}
#if defined(RAID_DIAGNOSTIC) || defined(__COVERITY__)
#define RF_ASSERT(_x_) { \
Home |
Main Index |
Thread Index |
Old Index