From owner-svn-src-all@FreeBSD.ORG Fri Dec 19 14:49:15 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F0D01065678; Fri, 19 Dec 2008 14:49:15 +0000 (UTC) (envelope-from ivoras@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4FACA8FC19; Fri, 19 Dec 2008 14:49:15 +0000 (UTC) (envelope-from ivoras@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBJEnFbp074700; Fri, 19 Dec 2008 14:49:15 GMT (envelope-from ivoras@svn.freebsd.org) Received: (from ivoras@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBJEnFOb074699; Fri, 19 Dec 2008 14:49:15 GMT (envelope-from ivoras@svn.freebsd.org) Message-Id: <200812191449.mBJEnFOb074699@svn.freebsd.org> From: Ivan Voras Date: Fri, 19 Dec 2008 14:49:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186322 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 14:49:15 -0000 Author: ivoras Date: Fri Dec 19 14:49:14 2008 New Revision: 186322 URL: http://svn.freebsd.org/changeset/base/186322 Log: Further beautify the lock strings to be more pleasing to the eye and self documenting within 6 characters. Reviewed by: ed (older version) Approved by: gnn (older version) Modified: head/sys/kern/tty.c Modified: head/sys/kern/tty.c ============================================================================== --- head/sys/kern/tty.c Fri Dec 19 14:47:38 2008 (r186321) +++ head/sys/kern/tty.c Fri Dec 19 14:49:14 2008 (r186322) @@ -871,9 +871,9 @@ tty_alloc(struct ttydevsw *tsw, void *sc tty_init_termios(tp); - cv_init(&tp->t_inwait, "ttyinput"); - cv_init(&tp->t_outwait, "ttyoutput"); - cv_init(&tp->t_bgwait, "ttybackground"); + cv_init(&tp->t_inwait, "ttyinp"); + cv_init(&tp->t_outwait, "ttyout"); + cv_init(&tp->t_bgwait, "ttybgw"); cv_init(&tp->t_dcdwait, "ttydcd"); ttyinq_init(&tp->t_inq); @@ -884,7 +884,7 @@ tty_alloc(struct ttydevsw *tsw, void *sc tp->t_mtx = mutex; } else { tp->t_mtx = &tp->t_mtxobj; - mtx_init(&tp->t_mtxobj, "ttylock", NULL, MTX_DEF); + mtx_init(&tp->t_mtxobj, "ttylck", NULL, MTX_DEF); } knlist_init(&tp->t_inpoll.si_note, tp->t_mtx, NULL, NULL, NULL);