Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/cmd/zdb fix printf warnings.
details: https://anonhg.NetBSD.org/src/rev/1f72f58f75ef
branches: trunk
changeset: 995147:1f72f58f75ef
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 09 18:01:01 2018 +0000
description:
fix printf warnings.
diffstat:
external/cddl/osnet/dist/cmd/zdb/zdb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 79b4b464e744 -r 1f72f58f75ef external/cddl/osnet/dist/cmd/zdb/zdb.c
--- a/external/cddl/osnet/dist/cmd/zdb/zdb.c Sun Dec 09 17:52:48 2018 +0000
+++ b/external/cddl/osnet/dist/cmd/zdb/zdb.c Sun Dec 09 18:01:01 2018 +0000
@@ -1144,8 +1144,8 @@
(void) snprintf(internalstr,
sizeof (internalstr),
"[internal %s txg:%lld] %s",
- zfs_history_event_names[ievent], txg,
- intstr);
+ zfs_history_event_names[ievent],
+ (u_longlong_t)txg, intstr);
cmd = internalstr;
}
tsec = time;
@@ -2048,7 +2048,7 @@
{
time_t timestamp = ub->ub_timestamp;
- (void) printf(header ? header : "");
+ (void) printf("%s", header);
(void) printf("\tmagic = %016llx\n", (u_longlong_t)ub->ub_magic);
(void) printf("\tversion = %llu\n", (u_longlong_t)ub->ub_version);
(void) printf("\ttxg = %llu\n", (u_longlong_t)ub->ub_txg);
@@ -2060,7 +2060,7 @@
snprintf_blkptr(blkbuf, sizeof (blkbuf), &ub->ub_rootbp);
(void) printf("\trootbp = %s\n", blkbuf);
}
- (void) printf(footer ? footer : "");
+ (void) printf("%s", footer);
}
static void
Home |
Main Index |
Thread Index |
Old Index