From 4e4a3eeb6c39ee419a42c8e465d500ad99b0902d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 27 Nov 2019 13:38:13 +0100 Subject: [PATCH] fix printf parameter in asn1_utils --- lib/src/asn1/asn1_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/asn1/asn1_utils.cc b/lib/src/asn1/asn1_utils.cc index 47eb50383..d45213b9a 100644 --- a/lib/src/asn1/asn1_utils.cc +++ b/lib/src/asn1/asn1_utils.cc @@ -929,7 +929,7 @@ std::string octstring_to_string(const uint8_t* ptr, uint32_t N) void string_to_octstring(uint8_t* ptr, const std::string& str) { if (str.size() % 2 != 0) { - srsasn_log_print(LOG_LEVEL_WARNING, "The provided hex string size=%zu is not a multiple of 2\n.", str.size()); + srsasn_log_print(LOG_LEVEL_WARNING, "The provided hex string size=%zd is not a multiple of 2\n.", str.size()); } char cstr[] = "\0\0\0"; for (uint32_t i = 0; i < str.size(); i += 2) { @@ -1436,7 +1436,7 @@ varlength_field_pack_guard::~varlength_field_pack_guard() uint32_t nof_bytes = bref_tracker->distance(bref0) / (uint32_t)8; if (nof_bytes > sizeof(buffer)) { srsasn_log_print(LOG_LEVEL_ERROR, - "The packed variable sized field is too long for the reserved buffer (%u > %zu)\n", + "The packed variable sized field is too long for the reserved buffer (%d > %zd)\n", nof_bytes, sizeof(buffer)); }