summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-12-23 20:45:03 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-12-23 20:45:03 +0000
commit754e17c8a9bdc0dc7fe5d3116711a1a0a1cd61df (patch)
tree3592b1194fade1da2578aaa16d67a746253faa89 /sys/kern
parentb55f6e2edabba371f6f77d6f3b7378cade1fcfa3 (diff)
nanosleep(2): shorten wmesg from "nanosleep" to "nanoslp"
We only see 8 characters of wmesg in e.g. top(1), so shorten the string to fit. Indirectly prompted by kettenis@.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index d34329ee642..aa380e0a525 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_time.c,v 1.150 2020/11/10 17:26:54 cheloha Exp $ */
+/* $OpenBSD: kern_time.c,v 1.151 2020/12/23 20:45:02 cheloha Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
@@ -294,7 +294,7 @@ sys_nanosleep(struct proc *p, void *v, register_t *retval)
do {
getnanouptime(&start);
nsecs = MAX(1, MIN(TIMESPEC_TO_NSEC(&request), MAXTSLP));
- error = tsleep_nsec(&chan, PWAIT | PCATCH, "nanosleep", nsecs);
+ error = tsleep_nsec(&chan, PWAIT | PCATCH, "nanoslp", nsecs);
getnanouptime(&stop);
timespecsub(&stop, &start, &elapsed);
timespecsub(&request, &elapsed, &request);