Use ttopen in tty drivers open functions as ttysleep string, as the others do.
authorjan <jan@openbsd.org>
Wed, 1 Sep 2021 16:10:39 +0000 (16:10 +0000)
committerjan <jan@openbsd.org>
Wed, 1 Sep 2021 16:10:39 +0000 (16:10 +0000)
ok patrick@

sys/arch/sparc64/dev/sab.c
sys/dev/ic/cy.c
sys/dev/sbus/magma.c
sys/dev/sbus/spif.c

index dbd60d4..a82f8fb 100644 (file)
@@ -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;
index 2b9d411..a2f3848 100644 (file)
@@ -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);
index a68b113..4a26484 100644 (file)
@@ -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);
index e86fb7e..e5236d4 100644 (file)
@@ -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);