Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 20:49:15 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187034 - head/sys/dev/sound/pcm
Message-ID:  <200901102049.n0AKnFP6008427@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901102049.n0AKnFP6008427>