From: jan Date: Wed, 1 Sep 2021 16:10:39 +0000 (+0000) Subject: Use ttopen in tty drivers open functions as ttysleep string, as the others do. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=76d1ff0ebc9b3c6257143c207a6150a23f528e13;p=openbsd Use ttopen in tty drivers open functions as ttysleep string, as the others do. ok patrick@ --- 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);