Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Use %zu format for size_t instead of %x.
details: https://anonhg.NetBSD.org/src/rev/4bc9fb27b21b
branches: trunk
changeset: 764783:4bc9fb27b21b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed May 04 01:30:01 2011 +0000
description:
Use %zu format for size_t instead of %x.
diffstat:
usr.bin/netstat/vtw.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 543c539d720c -r 4bc9fb27b21b usr.bin/netstat/vtw.c
--- a/usr.bin/netstat/vtw.c Wed May 04 01:13:35 2011 +0000
+++ b/usr.bin/netstat/vtw.c Wed May 04 01:30:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vtw.c,v 1.1 2011/05/03 18:28:46 dyoung Exp $ */
+/* $NetBSD: vtw.c,v 1.2 2011/05/04 01:30:01 dyoung Exp $ */
/*
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-__RCSID("$NetBSD: vtw.c,v 1.1 2011/05/03 18:28:46 dyoung Exp $");
+__RCSID("$NetBSD: vtw.c,v 1.2 2011/05/04 01:30:01 dyoung Exp $");
#endif
#endif /* not lint */
@@ -130,7 +130,7 @@
cc = kvm_read(get_kvmd(), (unsigned long) addr, buf, len);
if (cc != len) {
- warnx("%s: short read at %p, len %x cc %x\n", __func__, addr,
+ warnx("%s: short read at %p, len %x cc %zu\n", __func__, addr,
len, cc);
}
}
Home |
Main Index |
Thread Index |
Old Index