Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netkey Fix printf format on LP64.
details: https://anonhg.NetBSD.org/src/rev/84384a336fb3
branches: trunk
changeset: 474233:84384a336fb3
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jul 01 22:47:56 1999 +0000
description:
Fix printf format on LP64.
diffstat:
sys/netkey/key_debug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 807dfc41e7f6 -r 84384a336fb3 sys/netkey/key_debug.c
--- a/sys/netkey/key_debug.c Thu Jul 01 22:03:38 1999 +0000
+++ b/sys/netkey/key_debug.c Thu Jul 01 22:47:56 1999 +0000
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
-/* KAME @(#)$Id: key_debug.c,v 1.3 1999/07/01 20:10:27 itojun Exp $ */
+/* KAME @(#)$Id: key_debug.c,v 1.4 1999/07/01 22:47:56 thorpej Exp $ */
#ifdef _KERNEL
# define KERNEL
@@ -361,9 +361,9 @@
/* sanity check 2 */
if ((key->sadb_key_bits >> 3) >
(PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key))) {
- printf("kdebug_sadb_key: key length mismatch, bit:%d len:%d.\n",
+ printf("kdebug_sadb_key: key length mismatch, bit:%d len:%ld.\n",
key->sadb_key_bits >> 3,
- PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key));
+ (long)PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key));
}
ipsec_hexdump((caddr_t)key + sizeof(struct sadb_key),
Home |
Main Index |
Thread Index |
Old Index