diff options
author | ume <ume@FreeBSD.org> | 2003-11-02 12:28:04 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-11-02 12:28:04 +0000 |
commit | f4d1f7a456cee0bdcd4ebf8c8faec1a5f2c8c0a8 (patch) | |
tree | da726f9fb6a8958a9b760b858c6b5e7f946784cb /sys/netkey/key_debug.c | |
parent | 5079f19ffa944d0b068f8b9441fa883ba92b610d (diff) | |
download | FreeBSD-src-f4d1f7a456cee0bdcd4ebf8c8faec1a5f2c8c0a8.zip FreeBSD-src-f4d1f7a456cee0bdcd4ebf8c8faec1a5f2c8c0a8.tar.gz |
correct %d/%u mismatch.
Obtained from: KAME
Diffstat (limited to 'sys/netkey/key_debug.c')
-rw-r--r-- | sys/netkey/key_debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netkey/key_debug.c b/sys/netkey/key_debug.c index 18fe067..35ed02f 100644 --- a/sys/netkey/key_debug.c +++ b/sys/netkey/key_debug.c @@ -328,7 +328,7 @@ kdebug_sadb_identity(ext) id->sadb_ident_exttype == SADB_EXT_IDENTITY_SRC ? "src" : "dst"); switch (id->sadb_ident_type) { default: - printf(" type=%d id=%lu", + printf(" type=%u id=%lu", id->sadb_ident_type, (u_long)id->sadb_ident_id); if (len) { #ifdef _KERNEL @@ -372,7 +372,7 @@ kdebug_sadb_supported(ext) alg = (struct sadb_alg *)(sup + 1); printf("sadb_sup{\n"); while (len--) { - printf(" { id=%d ivlen=%d min=%d max=%d }\n", + printf(" { id=%u ivlen=%u min=%u max=%u }\n", alg->sadb_alg_id, alg->sadb_alg_ivlen, alg->sadb_alg_minbits, alg->sadb_alg_maxbits); alg++; @@ -458,7 +458,7 @@ kdebug_sadb_key(ext) /* 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:%ld.\n", + printf("kdebug_sadb_key: key length mismatch, bit:%u len:%ld.\n", key->sadb_key_bits >> 3, (long)PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key)); } @@ -595,7 +595,7 @@ kdebug_secpolicy(sp) printf(" type=entrust }\n"); break; default: - printf("kdebug_secpolicy: Invalid policy found. %d\n", + printf("kdebug_secpolicy: Invalid policy found. %u\n", sp->policy); break; } |