From bbfd46240697bb254c25f7ec94f8490a6acf54ed Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 3 Feb 2025 08:50:40 +0900 Subject: [PATCH] [PFCP] Fix the compile error (#3689) --- lib/pfcp/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pfcp/path.c b/lib/pfcp/path.c index 31d0a737c..8877d80eb 100644 --- a/lib/pfcp/path.c +++ b/lib/pfcp/path.c @@ -82,7 +82,7 @@ ogs_pkbuf_t *ogs_pfcp_recvfrom(ogs_socket_t fd, ogs_sockaddr_t *from) /* Check that the data is at least as long as the header */ if (size < MIN_PFCP_HEADER_LENGTH) { ogs_error("Received PFCP message too short: %ld bytes (min %d)", - size, MIN_PFCP_HEADER_LENGTH); + (long)size, MIN_PFCP_HEADER_LENGTH); ogs_pkbuf_free(pkbuf); return NULL; } @@ -113,7 +113,7 @@ ogs_pkbuf_t *ogs_pfcp_recvfrom(ogs_socket_t fd, ogs_sockaddr_t *from) expected_total_length = pfcp_body_length + 4; if ((size_t)size != expected_total_length) { ogs_error("Invalid PFCP Header Length: expected %zu bytes, " - "received %ld bytes", expected_total_length, size); + "received %ld bytes", expected_total_length, (long)size); ogs_pkbuf_free(pkbuf); return NULL; }