Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-08-18 00:32:50 +00:00
parent cc18e4cccf
commit 18df27bda2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38412
15 changed files with 53 additions and 51 deletions

View File

@ -1,4 +1,4 @@
/* $Id: bootp_subr.c,v 1.12 1998/03/28 10:33:15 bde Exp $ */
/* $Id: bootp_subr.c,v 1.13 1998/03/30 09:53:38 phk Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -361,8 +361,8 @@ bootpc_call(call,reply,procp)
if (timo < MAX_RESEND_DELAY)
timo++;
else
printf("BOOTP timeout for server 0x%x\n",
ntohl(sin->sin_addr.s_addr));
printf("BOOTP timeout for server 0x%lx\n",
(u_long)ntohl(sin->sin_addr.s_addr));
/*
* Wait for up to timo seconds for a reply.

View File

@ -1,5 +1,5 @@
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
/* $Id: krpc_subr.c,v 1.8 1998/03/14 03:25:16 tegge Exp $ */
/* $Id: krpc_subr.c,v 1.9 1998/03/28 10:33:15 bde Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -337,8 +337,8 @@ krpc_call(sa, prog, vers, func, data, from_p, procp)
if (timo < MAX_RESEND_DELAY)
timo++;
else
printf("RPC timeout for server 0x%x\n",
ntohl(sa->sin_addr.s_addr));
printf("RPC timeout for server 0x%lx\n",
(u_long)ntohl(sa->sin_addr.s_addr));
/*
* Wait for up to timo seconds for a reply.

View File

@ -1,4 +1,4 @@
/* $Id: bootp_subr.c,v 1.12 1998/03/28 10:33:15 bde Exp $ */
/* $Id: bootp_subr.c,v 1.13 1998/03/30 09:53:38 phk Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -361,8 +361,8 @@ bootpc_call(call,reply,procp)
if (timo < MAX_RESEND_DELAY)
timo++;
else
printf("BOOTP timeout for server 0x%x\n",
ntohl(sin->sin_addr.s_addr));
printf("BOOTP timeout for server 0x%lx\n",
(u_long)ntohl(sin->sin_addr.s_addr));
/*
* Wait for up to timo seconds for a reply.

View File

@ -1,5 +1,5 @@
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
/* $Id: krpc_subr.c,v 1.8 1998/03/14 03:25:16 tegge Exp $ */
/* $Id: krpc_subr.c,v 1.9 1998/03/28 10:33:15 bde Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -337,8 +337,8 @@ krpc_call(sa, prog, vers, func, data, from_p, procp)
if (timo < MAX_RESEND_DELAY)
timo++;
else
printf("RPC timeout for server 0x%x\n",
ntohl(sa->sin_addr.s_addr));
printf("RPC timeout for server 0x%lx\n",
(u_long)ntohl(sa->sin_addr.s_addr));
/*
* Wait for up to timo seconds for a reply.

View File

@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: pcic_p.c,v 1.5 1998/02/07 20:41:20 nate Exp $
*/
#include "pci.h"
@ -108,7 +108,7 @@ pcic_pci_attach(pcici_t config_id, int unit)
for (j = 0; j < 0x98; j += 16) {
printf("%02x: ", j);
for (i = 0; i < 16; i += 4)
printf(" %08x", pci_conf_read(config_id, i+j));
printf(" %08lx", pci_conf_read(config_id, i+j));
printf("\n");
}
p = (u_char *)pmap_mapdev(pci_conf_read(config_id, 0x10),
@ -117,10 +117,10 @@ pcic_pci_attach(pcici_t config_id, int unit)
printf("Cardbus Socket registers:\n");
printf("00: ");
for (i = 0; i < 4; i += 1)
printf(" %08x:", pl[i]);
printf(" %08lx:", pl[i]);
printf("\n10: ");
for (i = 4; i < 8; i += 1)
printf(" %08x:", pl[i]);
printf(" %08lx:", pl[i]);
printf("\nExCa registers:\n");
for (i = 0; i < 0x40; i += 16)
printf("%02x: %16D\n", i, p + 0x800 + i, " ");

View File

@ -963,7 +963,8 @@ meteor_init ( meteor_reg_t *mtr )
SAA7196_REG(mtr, SAA7196_STDC) & ~0x02);
SAA7196_READ(mtr);
printf("meteor%d: <Philips SAA 7196> rev 0x%x\n",
METEOR_NUM(mtr), (mtr->base->i2c_read&0xff000000L)>>28);
METEOR_NUM(mtr),
(unsigned)((mtr->base->i2c_read & 0xff000000L) >> 28));
} else {
i2c_print_err = 1;
printf("meteor%d: <Philips SAA 7196 NOT FOUND>\n",
@ -1042,7 +1043,7 @@ met_attach(pcici_t tag, int unit)
pci_conf_write(tag, PCI_LATENCY_TIMER, latency<<8);
}
if(bootverbose) {
printf(" %d.\n", latency);
printf(" %lu.\n", latency);
}
meteor_init(mtr); /* set up saa7116, saa7196, and rgb module */

View File

@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: pcic_p.c,v 1.5 1998/02/07 20:41:20 nate Exp $
*/
#include "pci.h"
@ -108,7 +108,7 @@ pcic_pci_attach(pcici_t config_id, int unit)
for (j = 0; j < 0x98; j += 16) {
printf("%02x: ", j);
for (i = 0; i < 16; i += 4)
printf(" %08x", pci_conf_read(config_id, i+j));
printf(" %08lx", pci_conf_read(config_id, i+j));
printf("\n");
}
p = (u_char *)pmap_mapdev(pci_conf_read(config_id, 0x10),
@ -117,10 +117,10 @@ pcic_pci_attach(pcici_t config_id, int unit)
printf("Cardbus Socket registers:\n");
printf("00: ");
for (i = 0; i < 4; i += 1)
printf(" %08x:", pl[i]);
printf(" %08lx:", pl[i]);
printf("\n10: ");
for (i = 4; i < 8; i += 1)
printf(" %08x:", pl[i]);
printf(" %08lx:", pl[i]);
printf("\nExCa registers:\n");
for (i = 0; i < 0x40; i += 16)
printf("%02x: %16D\n", i, p + 0x800 + i, " ");

View File

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id$
* $Id: xrpu.c,v 1.1 1998/05/30 18:28:11 phk Exp $
*
* A very simple device driver for PCI cards based on Xilinx 6200 series
* FPGA/RPU devices. Current Functionality is to allow you to open and
@ -100,11 +100,12 @@ xrpu_attach (pcici_t tag, int unit)
pci_map_mem(tag, PCI_MAP_REG_START, &virbase, &physbase);
printf("Mapped physbase %p to virbase %p\n", physbase, virbase);
printf("Mapped physbase %#lx to virbase %#lx\n",
(u_long)physbase, (u_long)virbase);
cdevsw_add(&cdev, &xrpudevsw, NULL);
devfs_add_devswf(&xrpudevsw, 0, DV_CHR, UID_ROOT, GID_WHEEL, 0600,
"xrpu0", 0);
"xrpu0");
}
#endif /* DEVFS */

View File

@ -37,7 +37,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pt.c,v 1.28 1998/06/17 14:13:14 bde Exp $
* $Id: pt.c,v 1.29 1998/07/04 22:30:24 julian Exp $
*/
#include "opt_bounce.h"
@ -209,7 +209,7 @@ ptstart(unit, flags)
bp,
flags) == SUCCESSFULLY_QUEUED) {
} else {
printf("pt%ld: oops not queued\n", unit);
printf("pt%lu: oops not queued\n", (u_long)unit);
bp->b_flags |= B_ERROR;
bp->b_error = EIO;
biodone(bp);

View File

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: scsi_driver.c,v 1.25 1997/09/02 04:37:57 bde Exp $
* $Id: scsi_driver.c,v 1.26 1997/09/02 20:06:34 bde Exp $
*
*/
@ -143,8 +143,8 @@ struct scsi_device *device)
if (!errcode ) sc_link->flags |= SDEV_IS_OPEN;
SC_DEBUG(sc_link, SDEV_DB1, ("%sopen: dev=0x%lx (unit %ld) result %d\n",
device->name, dev, unit, errcode));
SC_DEBUG(sc_link, SDEV_DB1, ("%sopen: dev=0x%lx (unit %lu) result %d\n",
device->name, (u_long)dev, (u_long)unit, errcode));
return errcode;
}
@ -198,7 +198,7 @@ scsi_strategy(struct buf *bp, struct scsi_device *device)
SC_DEBUG(sc_link, SDEV_DB2, ("\n%sstrategy ", device->name));
SC_DEBUG(sc_link, SDEV_DB1, ("%ld bytes @ blk%ld\n",
bp->b_bcount, bp->b_blkno));
bp->b_bcount, (long)bp->b_blkno));
if (SCSI_CONTROL(bp->b_dev) || (device->dev_strategy == 0))
{

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*End copyright
*
* $Id: scsi_ioctl.c,v 1.30 1998/03/28 10:33:21 bde Exp $
* $Id: scsi_ioctl.c,v 1.31 1998/06/07 17:12:49 dfr Exp $
*
*
*/
@ -260,7 +260,7 @@ struct proc *p, struct scsi_link *sc_link)
if (cmd != SCIOCIDENTIFY && cmd != SCIOCGETDEVINFO&& !(flags & FWRITE))
return EACCES;
SC_DEBUG(sc_link,SDEV_DB2,("scsi_do_ioctl(0x%x)\n",cmd));
SC_DEBUG(sc_link,SDEV_DB2, ("scsi_do_ioctl(0x%lx)\n", cmd));
switch(cmd)
{
case SCIOCCOMMAND:

View File

@ -16,7 +16,7 @@
*
* New configuration setup: dufault@hda.com
*
* $Id: scsiconf.c,v 1.106 1998/07/11 07:45:58 bde Exp $
* $Id: scsiconf.c,v 1.107 1998/07/28 09:03:37 phk Exp $
*/
#include "opt_scsi.h"
@ -1446,14 +1446,14 @@ scsi_probedev(sc_link, maybe_more, type_p)
sc_print_start(sc_link);
printf("<%s %s %s> ", manu, model, version );
printf("type %ld %sSCSI %d"
,type
printf("type %lu %sSCSI %d"
,(u_long)type
,remov ? "removable " : "fixed "
,inqbuf->version & SID_ANSII
);
if (qtype[0]) {
sc_print_addr(sc_link);
printf(" qualifier %ld: %s" ,qualifier ,qtype);
printf(" qualifier %lu: %s", (u_long)qualifier, qtype);
}
printf("\n");

View File

@ -37,7 +37,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sctarg.c,v 1.26 1998/06/17 14:13:14 bde Exp $
* $Id: sctarg.c,v 1.27 1998/07/04 22:30:24 julian Exp $
*/
#include "opt_bounce.h"
@ -248,7 +248,7 @@ sctargstart(unit, unused_flags)
bp,
flags | SCSI_NOSLEEP) == SUCCESSFULLY_QUEUED) {
} else {
printf("sctarg%ld: oops not queued\n", unit);
printf("sctarg%lu: oops not queued\n", (u_long)unit);
bp->b_flags |= B_ERROR;
bp->b_error = EIO;
biodone(bp);

View File

@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: st.c,v 1.91 1998/07/11 07:46:01 bde Exp $
* $Id: st.c,v 1.92 1998/07/31 09:00:39 phk Exp $
*/
/*
@ -272,22 +272,22 @@ stattach(struct scsi_link *sc_link)
devfs_add_devswf(&st_cdevsw,
(unit << 4 ) + (ii * 4), DV_CHR,
UID_ROOT, GID_OPERATOR, 0660,
"rst%ld.%d", unit, ii);
"rst%lu.%d", (u_long)unit, ii);
st->devfs_token.nrst_[ii] =
devfs_add_devswf(&st_cdevsw,
(unit << 4 ) + ((ii * 4) + 1), DV_CHR,
UID_ROOT, GID_OPERATOR, 0660,
"nrst%ld.%d", unit, ii);
"nrst%lu.%d", (u_long)unit, ii);
st->devfs_token.erst_[ii] =
devfs_add_devswf(&st_cdevsw,
(unit << 4 ) + ((ii * 4) + 2), DV_CHR,
UID_ROOT, GID_OPERATOR, 0660,
"erst%ld.%d", unit, ii);
"erst%lu.%d", (u_long)unit, ii);
st->devfs_token.ctl_[ii] =
devfs_add_devswf(&st_cdevsw,
(unit << 4 ) + ((ii * 4) + 3), DV_CHR,
UID_ROOT, GID_OPERATOR, 0600,
"st%ldctl.%d", unit, ii);
"st%luctl.%d", (u_long)unit, ii);
}
st->devfs_token.ctl =
@ -296,11 +296,11 @@ stattach(struct scsi_link *sc_link)
"rst%d.ctl", unit);
/** add links **/
st->devfs_token.rst =
devfs_link(st->devfs_token.rst_[0], "rst%ld", unit);
devfs_link(st->devfs_token.rst_[0], "rst%lu", (u_long)unit);
st->devfs_token.nrst =
devfs_link(st->devfs_token.nrst_[0], "nrst%ld", unit);
devfs_link(st->devfs_token.nrst_[0], "nrst%lu", (u_long)unit);
st->devfs_token.erst =
devfs_link(st->devfs_token.erst_[0], "erst%ld", unit);
devfs_link(st->devfs_token.erst_[0], "erst%lu", (u_long)unit);
#endif
return 0;
}

View File

@ -43,7 +43,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: worm.c,v 1.57 1998/06/17 14:13:15 bde Exp $
* $Id: worm.c,v 1.58 1998/07/04 22:30:25 julian Exp $
*/
#include "opt_bounce.h"
@ -276,7 +276,7 @@ wormattach(struct scsi_link *sc_link)
struct scsi_data *worm = sc_link->sd;
if (sc_link->devmodes == 0)
printf(", warning: unknown drive type", unit);
printf(", warning: unknown drive type");
bufq_init(&worm->buf_queue);
@ -444,7 +444,7 @@ wormstart(unit, flags)
if ((bp->b_flags & B_READ) == B_WRITE)
worm->worm_flags |= WORMFL_WRITTEN;
} else {
printf("worm%ld: oops not queued\n", unit);
printf("worm%lu: oops not queued\n", (u_long)unit);
if (bp) {
bp->b_flags |= B_ERROR;
bp->b_error = EIO;
@ -661,7 +661,7 @@ worm_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p,
*/
unit = wormunit(dev);
worm = sc_link->sd;
SC_DEBUG(sc_link, SDEV_DB2, ("wormioctl 0x%x ", cmd));
SC_DEBUG(sc_link, SDEV_DB2, ("wormioctl 0x%lx ", cmd));
switch (cmd) {
case WORMIOCPREPDISK: