From b46e20abb96816bd8c0c98e649bd83d353e8ddc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Soares=20Silva?= Date: Tue, 15 Oct 2024 17:55:03 +0100 Subject: [PATCH] Address warnings in lte-enb.c by changing oai_cputime_t type. Since long long is the bigger type ( 8 bytes ) of the two used ( long long and uint32_t ), and long long is also available on ARM, change this parameter to always have this type. This allows to always use format specifier '%lld' in the logs that use TICK_TO_US, which would otherwise return long long or uint32_t depending on architecture. --- common/utils/time_meas.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/utils/time_meas.h b/common/utils/time_meas.h index bc37104a60..f7c2810b60 100644 --- a/common/utils/time_meas.h +++ b/common/utils/time_meas.h @@ -35,10 +35,8 @@ extern int cpu_meas_enabled; extern double cpu_freq_GHz __attribute__ ((aligned(32)));; // structure to store data to compute cpu measurment -#if defined(__x86_64__) || defined(__i386__) +#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__) typedef long long oai_cputime_t; -#elif defined(__arm__) || defined(__aarch64__) - typedef uint32_t oai_cputime_t; #else #error "building on unsupported CPU architecture" #endif