diff options
author | Bruce Evans <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
commit | d9183205179005f7582d41a23d4588b0b1140298 (patch) | |
tree | cb0c87b1224a17a7657b367fe1937277ed20037a /sys/dev/speaker | |
parent | 80e6247e720f131335d1f045e88f9a313e05cc81 (diff) |
Use devtoname() to print dev_t's instead of casting them to long or u_long
for misprinting in %lx format.
Notes
Notes:
svn path=/head/; revision=50253
Diffstat (limited to 'sys/dev/speaker')
-rw-r--r-- | sys/dev/speaker/spkr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index f6302a328e47..b11251f4860a 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.37 1999/05/31 11:26:32 phk Exp $ + * $Id: spkr.c,v 1.38 1999/08/17 20:25:49 billf Exp $ */ #include "speaker.h" @@ -563,8 +563,8 @@ spkrioctl(dev, cmd, cmdarg, flags, p) struct proc *p; { #ifdef DEBUG - (void) printf("spkrioctl: entering with dev = %lx, cmd = %lx\n", - (unsigned long)dev, cmd); + (void) printf("spkrioctl: entering with dev = %s, cmd = %lx\n", + devtoname(dev), cmd); #endif /* DEBUG */ if (minor(dev) != 0) |