Go back ot using 0x%x instead of %#x because we don't always support the
format. See subr_prf.c
This commit is contained in:
parent
4911039d01
commit
b776acde1b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bootp.c,v 1.42 2019/03/31 20:08:45 christos Exp $ */
|
||||
/* $NetBSD: bootp.c,v 1.43 2019/04/05 20:09:29 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Regents of the University of California.
|
||||
|
@ -323,7 +323,7 @@ bootprecv(struct iodesc *d, void *pkt, size_t len, saseconds_t tleft)
|
|||
if (bp->bp_xid != htonl(d->xid)) {
|
||||
#ifdef BOOTP_DEBUG
|
||||
if (debug) {
|
||||
printf("%s: expected xid %#lx, got %#x\n", __func__,
|
||||
printf("%s: expected xid 0x%lx, got 0x%x\n", __func__,
|
||||
d->xid, ntohl(bp->bp_xid));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs.c,v 1.26 2019/03/31 20:08:45 christos Exp $ */
|
||||
/* $NetBSD: ext2fs.c,v 1.27 2019/04/05 20:09:29 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -992,7 +992,7 @@ dump_sblock(struct m_ext2fs *fs)
|
|||
printf("fs->e2fs.e2fs_log_bsize = %u\n", fs->e2fs.e2fs_log_bsize);
|
||||
printf("fs->e2fs.e2fs_bpg = %u\n", fs->e2fs.e2fs_bpg);
|
||||
printf("fs->e2fs.e2fs_ipg = %u\n", fs->e2fs.e2fs_ipg);
|
||||
printf("fs->e2fs.e2fs_magic = %#x\n", fs->e2fs.e2fs_magic);
|
||||
printf("fs->e2fs.e2fs_magic = 0x%x\n", fs->e2fs.e2fs_magic);
|
||||
printf("fs->e2fs.e2fs_rev = %u\n", fs->e2fs.e2fs_rev);
|
||||
|
||||
if (fs->e2fs.e2fs_rev == E2FS_REV1) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: loadfile.c,v 1.31 2019/03/31 20:08:45 christos Exp $ */
|
||||
/* $NetBSD: loadfile.c,v 1.32 2019/04/05 20:09:29 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -185,7 +185,7 @@ fdloadfile(int fd, u_long *marks, int flags)
|
|||
|
||||
if (rval == 0) {
|
||||
if ((flags & LOAD_ALL) != 0)
|
||||
PROGRESS(("=%#lx\n",
|
||||
PROGRESS(("=0x%lx\n",
|
||||
marks[MARK_END] - marks[MARK_START]));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rarp.c,v 1.33 2019/03/31 20:08:45 christos Exp $ */
|
||||
/* $NetBSD: rarp.c,v 1.34 2019/04/05 20:09:29 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Regents of the University of California.
|
||||
|
@ -196,7 +196,7 @@ rarprecv(struct iodesc *d, void *pkt, size_t len, saseconds_t tleft)
|
|||
if (etype != ETHERTYPE_REVARP) {
|
||||
#ifdef RARP_DEBUG
|
||||
if (debug)
|
||||
printf("bad type=%#x\n", etype);
|
||||
printf("bad type=0x%x\n", etype);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ rarprecv(struct iodesc *d, void *pkt, size_t len, saseconds_t tleft)
|
|||
if (ap->arp_op != htons(ARPOP_REVREPLY)) {
|
||||
#ifdef RARP_DEBUG
|
||||
if (debug)
|
||||
printf("bad op=%#x\n", ntohs(ap->arp_op));
|
||||
printf("bad op=0x%x\n", ntohs(ap->arp_op));
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rpc.c,v 1.30 2019/03/31 20:08:45 christos Exp $ */
|
||||
/* $NetBSD: rpc.c,v 1.31 2019/04/05 20:09:29 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Regents of the University of California.
|
||||
|
@ -127,7 +127,7 @@ rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc,
|
|||
|
||||
#ifdef RPC_DEBUG
|
||||
if (debug)
|
||||
printf("%s: prog=%#x vers=%d proc=%d\n", __func__,
|
||||
printf("%s: prog=0x%x vers=%d proc=%d\n", __func__,
|
||||
prog, vers, proc);
|
||||
#endif
|
||||
|
||||
|
@ -408,7 +408,7 @@ rpc_getport(struct iodesc *d, n_long prog, n_long vers)
|
|||
|
||||
#ifdef RPC_DEBUG
|
||||
if (debug)
|
||||
printf("%s: prog=%#x vers=%d\n", __func__, prog, vers);
|
||||
printf("%s: prog=0x%x vers=%d\n", __func__, prog, vers);
|
||||
#endif
|
||||
|
||||
/* This one is fixed forever. */
|
||||
|
|
Loading…
Reference in New Issue