summaryrefslogtreecommitdiffstats
path: root/sys/dev/speaker
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-08-17 20:25:50 +0000
committerbillf <billf@FreeBSD.org>1999-08-17 20:25:50 +0000
commit4515ed49edc4262f23e777f1b40d670e8c6b1e82 (patch)
tree83c0c5a7384f6efe02a4acf9565c5f24357a6a9f /sys/dev/speaker
parent038fe873dd8c91ddd852d81bc5c30d02b5c76fa9 (diff)
downloadFreeBSD-src-4515ed49edc4262f23e777f1b40d670e8c6b1e82.zip
FreeBSD-src-4515ed49edc4262f23e777f1b40d670e8c6b1e82.tar.gz
Welcome devtoname(), to most likely be used when printing information
about a dev_t. printf("%x", dev) now becomes printf("%s", devtoname(dev)) because printing actual information about the device is much more useful then printing a pointer to an address that would never help the developer debug. Submitted by: phk, bde
Diffstat (limited to 'sys/dev/speaker')
-rw-r--r--sys/dev/speaker/spkr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index f594b8b..f6302a3 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -4,7 +4,7 @@
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
*
- * $Id: spkr.c,v 1.36 1999/05/30 16:52:27 phk Exp $
+ * $Id: spkr.c,v 1.37 1999/05/31 11:26:32 phk Exp $
*/
#include "speaker.h"
@@ -480,7 +480,7 @@ spkropen(dev, flags, fmt, p)
struct proc *p;
{
#ifdef DEBUG
- (void) printf("spkropen: entering with dev = %x\n", dev);
+ (void) printf("spkropen: entering with dev = %s\n", devtoname(dev));
#endif /* DEBUG */
if (minor(dev) != 0)
@@ -506,8 +506,8 @@ spkrwrite(dev, uio, ioflag)
int ioflag;
{
#ifdef DEBUG
- printf("spkrwrite: entering with dev = %x, count = %d\n",
- dev, uio->uio_resid);
+ printf("spkrwrite: entering with dev = %s, count = %d\n",
+ devtoname(dev), uio->uio_resid);
#endif /* DEBUG */
if (minor(dev) != 0)
@@ -539,7 +539,7 @@ spkrclose(dev, flags, fmt, p)
struct proc *p;
{
#ifdef DEBUG
- (void) printf("spkrclose: entering with dev = %x\n", dev);
+ (void) printf("spkrclose: entering with dev = %s\n", devtoname(dev));
#endif /* DEBUG */
if (minor(dev) != 0)
OpenPOWER on IntegriCloud