use the correct filed type for a size_t

This commit is contained in:
agc 2010-05-08 02:54:25 +00:00
parent 4fc2ffd701
commit 313fa53dd5

View File

@ -58,7 +58,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: packet-parse.c,v 1.33 2010/05/08 02:17:15 agc Exp $");
__RCSID("$NetBSD: packet-parse.c,v 1.34 2010/05/08 02:54:25 agc Exp $");
#endif
#ifdef HAVE_OPENSSL_CAST_H
@ -2842,7 +2842,7 @@ parse_pk_sesskey(__ops_region_t *region,
return 0;
}
if (__ops_get_debug_level(__FILE__)) {
fprintf(stderr, "session key: public key id: x=%d\n", sizeof(pkt.u.pk_sesskey.key_id));
fprintf(stderr, "session key: public key id: x=%" PRIsize "d\n", sizeof(pkt.u.pk_sesskey.key_id));
hexdump(stderr, pkt.u.pk_sesskey.key_id, sizeof(pkt.u.pk_sesskey.key_id), " ");
fprintf(stderr, "\n");
}