From fdf260121c69a4a7b253788b9b456ebb7fdaebd8 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 15 Feb 2024 12:55:16 +0100 Subject: [PATCH] fix 32-bit compiler issue --- databases/lib/libipv6calc_db_wrapper_GeoIP2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databases/lib/libipv6calc_db_wrapper_GeoIP2.c b/databases/lib/libipv6calc_db_wrapper_GeoIP2.c index 945d3a14..c7fccf72 100644 --- a/databases/lib/libipv6calc_db_wrapper_GeoIP2.c +++ b/databases/lib/libipv6calc_db_wrapper_GeoIP2.c @@ -924,7 +924,7 @@ uint32_t libipv6calc_db_wrapper_GeoIP2_wrapper_asn_by_addr(const ipv6calc_ipaddr // AS Text (optional) if ((as_orgname != NULL) && (as_orgname_length > 0)) { - DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME as_orgname=%p as_orgname_length=%lu", as_orgname, as_orgname_length); + DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME as_orgname=%p as_orgname_length=%lu", as_orgname, (long unsigned int) as_orgname_length); result = libipv6calc_db_wrapper_MMDB_all_by_addr(ipaddrp, &record_asn, &mmdb_cache[GEOIP2_type]); if (result != MMDB_SUCCESS) { @@ -937,7 +937,7 @@ uint32_t libipv6calc_db_wrapper_GeoIP2_wrapper_asn_by_addr(const ipv6calc_ipaddr DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "result AS_ORGNAME=%s", as_orgname); } else { - DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME skipped as_orgname=%p as_orgname_length=%lu", as_orgname, as_orgname_length); + DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME skipped as_orgname=%p as_orgname_length=%lu", as_orgname, (long unsigned int) as_orgname_length); }; GeoIP2_DB_USAGE_MAP_TAG(GEOIP2_type);