summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2021-09-01 16:10:40 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2021-09-01 16:10:40 +0000
commit7c648a178c8a3fc2a1e63b3fd99c359e610b2269 (patch)
treef025212e8505cffde6406a3bba30e9f4374cb8a9
parent1006afd4e830c7d004b0f5cdcdca73ad382d8af4 (diff)
Use ttopen in tty drivers open functions as ttysleep string, as the others do.
ok patrick@
-rw-r--r--sys/arch/sparc64/dev/sab.c4
-rw-r--r--sys/dev/ic/cy.c4
-rw-r--r--sys/dev/sbus/magma.c5
-rw-r--r--sys/dev/sbus/spif.c4
4 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index dbd60d4f33c..a82f8fb73cd 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.37 2019/10/12 15:55:31 cheloha Exp $ */
+/* $OpenBSD: sab.c,v 1.38 2021/09/01 16:10:39 jan Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -732,7 +732,7 @@ sabttyopen(dev, flags, mode, p)
tp->t_state |= TS_WOPEN;
error = ttysleep(tp, &tp->t_rawq, TTIPRI | PCATCH,
- "sabttycd");
+ ttopen);
if (error != 0) {
splx(s);
tp->t_state &= ~TS_WOPEN;
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index 2b9d4111f34..a2f3848c1ee 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.40 2021/03/07 06:21:38 jsg Exp $ */
+/* $OpenBSD: cy.c,v 1.41 2021/09/01 16:10:39 jan Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
@@ -368,7 +368,7 @@ cyopen(dev_t dev, int flag, int mode, struct proc *p)
!ISSET(tp->t_state, TS_CARR_ON)) {
SET(tp->t_state, TS_WOPEN);
error = ttysleep(tp, &tp->t_rawq, TTIPRI | PCATCH,
- "cydcd");
+ ttopen);
if (error != 0) {
splx(s);
CLR(tp->t_state, TS_WOPEN);
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c
index a68b113338c..4a26484f256 100644
--- a/sys/dev/sbus/magma.c
+++ b/sys/dev/sbus/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.32 2020/05/23 09:44:20 mpi Exp $ */
+/* $OpenBSD: magma.c,v 1.33 2021/09/01 16:10:39 jan Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
@@ -904,7 +904,8 @@ mttyopen(dev_t dev, int flags, int mode, struct proc *p)
int error;
SET(tp->t_state, TS_WOPEN);
- error = ttysleep(tp, &tp->t_rawq, TTIPRI | PCATCH, "mttydcd");
+ error = ttysleep(tp, &tp->t_rawq, TTIPRI | PCATCH,
+ ttopen);
if (error != 0) {
splx(s);
CLR(tp->t_state, TS_WOPEN);
diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c
index e86fb7e0504..e5236d43c30 100644
--- a/sys/dev/sbus/spif.c
+++ b/sys/dev/sbus/spif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spif.c,v 1.24 2020/05/23 09:44:20 mpi Exp $ */
+/* $OpenBSD: spif.c,v 1.25 2021/09/01 16:10:39 jan Exp $ */
/*
* Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net)
@@ -392,7 +392,7 @@ sttyopen(dev_t dev, int flags, int mode, struct proc *p)
SET(tp->t_state, TS_WOPEN);
error = ttysleep(tp, &tp->t_rawq, TTIPRI | PCATCH,
- "sttycd");
+ ttopen);
if (error != 0) {
splx(s);
CLR(tp->t_state, TS_WOPEN);