diff options
author | bde <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-23 20:35:21 +0000 |
commit | 2a5ff1f726f814a9e4717afe3f14250f8030cace (patch) | |
tree | c5bd4c78368007300b5100d7218bf7f088f0d215 /sys/i386/isa/istallion.c | |
parent | c0b846b2a45d1386c0f10d01639652b562c48195 (diff) | |
download | FreeBSD-src-2a5ff1f726f814a9e4717afe3f14250f8030cace.zip FreeBSD-src-2a5ff1f726f814a9e4717afe3f14250f8030cace.tar.gz |
Use devtoname() to print dev_t's instead of casting them to long or u_long
for misprinting in %lx format.
Diffstat (limited to 'sys/i386/isa/istallion.c')
-rw-r--r-- | sys/i386/isa/istallion.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index b93e3ca..a0be302 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: istallion.c,v 1.28 1999/05/30 16:52:16 phk Exp $ + * $Id: istallion.c,v 1.29 1999/05/31 11:26:09 phk Exp $ */ /*****************************************************************************/ @@ -1064,8 +1064,8 @@ STATIC int stliclose(dev_t dev, int flag, int mode, struct proc *p) int x; #if DEBUG - printf("stliclose(dev=%lx,flag=%x,mode=%x,p=%p)\n", - (unsigned long) dev, flag, mode, (void *) p); + printf("stliclose(dev=%s,flag=%x,mode=%x,p=%p)\n", + devtoname(dev), flag, mode, (void *) p); #endif if (minor(dev) & STL_MEMDEV) @@ -1092,7 +1092,7 @@ STATIC int stliread(dev_t dev, struct uio *uiop, int flag) stliport_t *portp; #if DEBUG - printf("stliread(dev=%lx,uiop=%p,flag=%x)\n", (unsigned long) dev, + printf("stliread(dev=%s,uiop=%p,flag=%x)\n", devtoname(dev), (void *) uiop, flag); #endif @@ -1149,7 +1149,7 @@ STATIC int stliwrite(dev_t dev, struct uio *uiop, int flag) stliport_t *portp; #if DEBUG - printf("stliwrite(dev=%lx,uiop=%p,flag=%x)\n", (unsigned long) dev, + printf("stliwrite(dev=%s,uiop=%p,flag=%x)\n", devtoname(dev), (void *) uiop, flag); #endif @@ -1175,8 +1175,8 @@ STATIC int stliioctl(dev_t dev, unsigned long cmd, caddr_t data, int flag, int error, i, x; #if DEBUG - printf("stliioctl(dev=%lx,cmd=%lx,data=%p,flag=%x,p=%p)\n", - (unsigned long) dev, cmd, (void *) data, flag, (void *) p); + printf("stliioctl(dev=%s,cmd=%lx,data=%p,flag=%x,p=%p)\n", + devtoname(dev), cmd, (void *) data, flag, (void *) p); #endif if (minor(dev) & STL_MEMDEV) @@ -3829,8 +3829,8 @@ static int stli_memioctl(dev_t dev, unsigned long cmd, caddr_t data, int flag, int brdnr, rc; #if DEBUG - printf("stli_memioctl(dev=%lx,cmd=%lx,data=%p,flag=%x)\n", - (unsigned long) dev, cmd, (void *) data, flag); + printf("stli_memioctl(dev=%s,cmd=%lx,data=%p,flag=%x)\n", + devtoname(dev), cmd, (void *) data, flag); #endif brdnr = minor(dev) & 0x7; |