Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Go back ot using 0x%x instead of %#x because w...
details: https://anonhg.NetBSD.org/src/rev/c2f7977c67f5
branches: trunk
changeset: 998032:c2f7977c67f5
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 05 20:09:29 2019 +0000
description:
Go back ot using 0x%x instead of %#x because we don't always support the
format. See subr_prf.c
diffstat:
sys/lib/libsa/bootp.c | 4 ++--
sys/lib/libsa/ext2fs.c | 4 ++--
sys/lib/libsa/loadfile.c | 4 ++--
sys/lib/libsa/rarp.c | 6 +++---
sys/lib/libsa/rpc.c | 6 +++---
5 files changed, 12 insertions(+), 12 deletions(-)
diffs (108 lines):
diff -r 1231fa6dc53c -r c2f7977c67f5 sys/lib/libsa/bootp.c
--- a/sys/lib/libsa/bootp.c Fri Apr 05 18:23:45 2019 +0000
+++ b/sys/lib/libsa/bootp.c Fri Apr 05 20:09:29 2019 +0000
@@ -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 @@
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
diff -r 1231fa6dc53c -r c2f7977c67f5 sys/lib/libsa/ext2fs.c
--- a/sys/lib/libsa/ext2fs.c Fri Apr 05 18:23:45 2019 +0000
+++ b/sys/lib/libsa/ext2fs.c Fri Apr 05 20:09:29 2019 +0000
@@ -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 @@
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) {
diff -r 1231fa6dc53c -r c2f7977c67f5 sys/lib/libsa/loadfile.c
--- a/sys/lib/libsa/loadfile.c Fri Apr 05 18:23:45 2019 +0000
+++ b/sys/lib/libsa/loadfile.c Fri Apr 05 20:09:29 2019 +0000
@@ -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 @@
if (rval == 0) {
if ((flags & LOAD_ALL) != 0)
- PROGRESS(("=%#lx\n",
+ PROGRESS(("=0x%lx\n",
marks[MARK_END] - marks[MARK_START]));
return 0;
}
diff -r 1231fa6dc53c -r c2f7977c67f5 sys/lib/libsa/rarp.c
--- a/sys/lib/libsa/rarp.c Fri Apr 05 18:23:45 2019 +0000
+++ b/sys/lib/libsa/rarp.c Fri Apr 05 20:09:29 2019 +0000
@@ -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 @@
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 @@
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;
}
diff -r 1231fa6dc53c -r c2f7977c67f5 sys/lib/libsa/rpc.c
--- a/sys/lib/libsa/rpc.c Fri Apr 05 18:23:45 2019 +0000
+++ b/sys/lib/libsa/rpc.c Fri Apr 05 20:09:29 2019 +0000
@@ -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 @@
#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 @@
#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. */
Home |
Main Index |
Thread Index |
Old Index