Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/kern Pull up revision 1.36 (approved by jhawk)
details: https://anonhg.NetBSD.org/src/rev/1b26677d1446
branches: netbsd-1-5
changeset: 489390:1b26677d1446
user: gmcgarry <gmcgarry%NetBSD.org@localhost>
date: Tue Sep 05 23:17:01 2000 +0000
description:
Pull up revision 1.36 (approved by jhawk)
>revision 1.36
>date: 2000/08/08 19:55:26; author: thorpej; state: Exp; lines: +4 -3
>Fix printf format error pointed out by Steve Woodford.
diffstat:
sys/kern/kern_lock.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r a670b61e046d -r 1b26677d1446 sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c Tue Sep 05 18:07:04 2000 +0000
+++ b/sys/kern/kern_lock.c Tue Sep 05 23:17:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lock.c,v 1.32.2.2 2000/08/11 23:10:15 thorpej Exp $ */
+/* $NetBSD: kern_lock.c,v 1.32.2.3 2000/09/05 23:17:01 gmcgarry Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -102,7 +102,8 @@
*/
#include <machine/stdarg.h>
-void lock_printf __P((const char *fmt, ...));
+void lock_printf(const char *fmt, ...)
+ __kprintf_attribute__((__format__(__kprintf__,1,2)));
int lock_debug_syslog = 0; /* defaults to printf, but can be patched */
#endif
@@ -999,7 +1000,7 @@
alp = TAILQ_NEXT(alp, list)) {
if (alp->lock_holder == cpu_id) {
lock_printf("switching with held simple_lock %p "
- "CPU %lu %s:%s\n",
+ "CPU %lu %s:%d\n",
alp, alp->lock_holder, alp->lock_file,
alp->lock_line);
SLOCK_DEBUGGER();
Home |
Main Index |
Thread Index |
Old Index