summaryrefslogtreecommitdiffstats
path: root/sys/dev/dgb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-12 16:16:10 +0000
committerbde <bde@FreeBSD.org>1998-08-12 16:16:10 +0000
commitaa85f8375f0e96c291c705a9c3c0fbf4443ef95a (patch)
tree2a06ff8501a919e5578f383045826cfddb743d14 /sys/dev/dgb
parent351dcdbe0de754f3d024a96c0db172b5a9059dde (diff)
downloadFreeBSD-src-aa85f8375f0e96c291c705a9c3c0fbf4443ef95a.zip
FreeBSD-src-aa85f8375f0e96c291c705a9c3c0fbf4443ef95a.tar.gz
Fixed printf format errors.
This file is disgusting.
Diffstat (limited to 'sys/dev/dgb')
-rw-r--r--sys/dev/dgb/dgb.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
index d975422..4f1fba9 100644
--- a/sys/dev/dgb/dgb.c
+++ b/sys/dev/dgb/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.35 1998/04/21 21:06:56 brian Exp $
+ * dgb.c $Id: dgb.c,v 1.36 1998/06/07 17:09:53 dfr Exp $
*
* Digiboard driver.
*
@@ -421,7 +421,7 @@ dgbprobe(dev)
/* left 24 bits only (ISA address) */
sc->pmem=((long)dev->id_maddr & 0xFFFFFF);
- DPRINT4(DB_INFO,"dgb%d: port 0x%x mem 0x%x\n",unit,sc->port,sc->pmem);
+ DPRINT4(DB_INFO,"dgb%d: port 0x%x mem 0x%lx\n",unit,sc->port,sc->pmem);
outb(sc->port, FEPRST);
sc->status=DISABLED;
@@ -489,9 +489,9 @@ dgbprobe(dev)
printf("dgb%d: PC/Xe 64/8K (windowed)\n",dev->id_unit);
sc->type=PCXEVE;
if((u_long)sc->pmem & ~0xFFE000) {
- printf("dgb%d: warning: address 0x%x truncated to 0x%x\n",
+ printf("dgb%d: warning: address 0x%lx truncated to 0x%lx\n",
dev->id_unit, sc->pmem,
- (long)sc->pmem & 0xFFE000);
+ sc->pmem & 0xFFE000);
dev->id_maddr= (u_char *)( (long)sc->pmem & 0xFFE000 );
}
@@ -2035,9 +2035,8 @@ dgbparam(tp, t)
if(cflag!=port->fepcflag) {
port->fepcflag=cflag;
- DPRINT6(DB_PARAM,"dgb%d: port%d: set cflag=0x%x c=0x%x\n",
- unit,pnum,cflag&(FEP_CBAUD|FEP_FASTBAUD),cflag,
- t->c_cflag&~CRTSCTS);
+ DPRINT5(DB_PARAM,"dgb%d: port%d: set cflag=0x%x c=0x%x\n",
+ unit,pnum,cflag,t->c_cflag&~CRTSCTS);
fepcmd(port, SETCTRLFLAGS, (unsigned)cflag, 0, 0, 0);
}
mval= port->omodem | (DTR|RTS);
OpenPOWER on IntegriCloud