summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-03-05 09:28:32 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-03-05 09:28:32 +0000
commit5a9fa5cc03096981f8fd7c7af80a07fe97261c8e (patch)
treebad31e4556729eebeea6e3d2559fbc6411bacb5c /sys/kern/kern_lock.c
parentb40d0561eae6faa914d6608ab9b8aec21719bb3c (diff)
The 'lock spun out' db_printf needs a newline. All other MP_LOCKDEBUG
messages do have the newline already. OK anton@ kettenis@
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index ef5aa3f6029..5cc55bb256a 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.70 2019/06/04 15:41:02 visa Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.71 2020/03/05 09:28:31 claudio Exp $ */
/*
* Copyright (c) 2017 Visa Hankala
@@ -118,7 +118,7 @@ __mp_lock_spin(struct __mp_lock *mpl, u_int me)
#ifdef MP_LOCKDEBUG
if (--nticks <= 0) {
- db_printf("%s: %p lock spun out", __func__, mpl);
+ db_printf("%s: %p lock spun out\n", __func__, mpl);
db_enter();
nticks = __mp_lock_spinout;
}
@@ -268,7 +268,7 @@ mtx_enter(struct mutex *mtx)
#ifdef MP_LOCKDEBUG
if (--nticks == 0) {
- db_printf("%s: %p lock spun out", __func__, mtx);
+ db_printf("%s: %p lock spun out\n", __func__, mtx);
db_enter();
nticks = __mp_lock_spinout;
}