From owner-svn-src-head@FreeBSD.ORG Sat Jan 10 20:49:16 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 000D3106566C; Sat, 10 Jan 2009 20:49:15 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E2FBC8FC0A; Sat, 10 Jan 2009 20:49:15 +0000 (UTC) (envelope-from mav@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 n0AKnFMV008428; Sat, 10 Jan 2009 20:49:15 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0AKnFP6008427; Sat, 10 Jan 2009 20:49:15 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <200901102049.n0AKnFP6008427@svn.freebsd.org> From: Alexander Motin Date: Sat, 10 Jan 2009 20: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: r187034 - head/sys/dev/sound/pcm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 20:49:16 -0000 Author: mav Date: Sat Jan 10 20:49:15 2009 New Revision: 187034 URL: http://svn.freebsd.org/changeset/base/187034 Log: Make devnode include full device path. This makes OSSv4 osstest tool work. Modified: head/sys/dev/sound/pcm/dsp.c Modified: head/sys/dev/sound/pcm/dsp.c ============================================================================== --- head/sys/dev/sound/pcm/dsp.c Sat Jan 10 19:03:35 2009 (r187033) +++ head/sys/dev/sound/pcm/dsp.c Sat Jan 10 20:49:15 2009 (r187034) @@ -2339,7 +2339,8 @@ dsp_oss_audioinfo(struct cdev *i_dev, os * @c real_device - OSSv4 docs: "Obsolete." */ ai->real_device = -1; - strlcpy(ai->devnode, devname, sizeof(ai->devnode)); + strlcpy(ai->devnode, "/dev/", sizeof(ai->devnode)); + strlcat(ai->devnode, devname, sizeof(ai->devnode)); ai->enabled = device_is_attached(d->dev) ? 1 : 0; /** * @note