From 0d262a089ad389d41e61ae97ed0869fa31981281 Mon Sep 17 00:00:00 2001 From: tobhe Date: Tue, 6 Dec 2022 09:07:33 +0000 Subject: [PATCH] Print size_t with %zu. ok patrick@ --- sbin/iked/ikev2.c | 4 ++-- sbin/iked/ikev2_msg.c | 4 ++-- sbin/iked/ikev2_pld.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 987918e608a..9579b8a2ea5 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.360 2022/12/03 21:02:27 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.361 2022/12/06 09:07:33 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -664,7 +664,7 @@ ikev2_recv(struct iked *env, struct iked_message *msg) logit(hdr->ike_exchange == IKEV2_EXCHANGE_INFORMATIONAL ? LOG_DEBUG : LOG_INFO, - "%srecv %s %s %u peer %s local %s, %ld bytes, policy '%s'", + "%srecv %s %s %u peer %s local %s, %zu bytes, policy '%s'", SPI_IH(hdr), print_map(hdr->ike_exchange, ikev2_exchange_map), msg->msg_response ? "res" : "req", diff --git a/sbin/iked/ikev2_msg.c b/sbin/iked/ikev2_msg.c index 09089dcdc02..aa98c78f492 100644 --- a/sbin/iked/ikev2_msg.c +++ b/sbin/iked/ikev2_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2_msg.c,v 1.89 2022/12/03 21:02:27 tobhe Exp $ */ +/* $OpenBSD: ikev2_msg.c,v 1.90 2022/12/06 09:07:33 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -280,7 +280,7 @@ ikev2_msg_send(struct iked *env, struct iked_message *msg) exchange = hdr->ike_exchange; flags = hdr->ike_flags; logit(exchange == IKEV2_EXCHANGE_INFORMATIONAL ? LOG_DEBUG : LOG_INFO, - "%ssend %s %s %u peer %s local %s, %ld bytes%s", + "%ssend %s %s %u peer %s local %s, %zu bytes%s", SPI_IH(hdr), print_map(exchange, ikev2_exchange_map), (flags & IKEV2_FLAG_RESPONSE) ? "res" : "req", diff --git a/sbin/iked/ikev2_pld.c b/sbin/iked/ikev2_pld.c index b12df4b925d..8a851d0f425 100644 --- a/sbin/iked/ikev2_pld.c +++ b/sbin/iked/ikev2_pld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2_pld.c,v 1.126 2022/12/03 21:02:27 tobhe Exp $ */ +/* $OpenBSD: ikev2_pld.c,v 1.127 2022/12/06 09:07:33 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -320,7 +320,7 @@ ikev2_validate_sa(struct iked_message *msg, size_t offset, size_t left, */ if (!sap->sap_more && left != sap_length) { log_debug("%s: malformed payload: SA payload length mismatches " - "single proposal substructure length (%lu != %zu)", + "single proposal substructure length (%zu != %zu)", __func__, left, sap_length); return (-1); } -- 2.20.1