diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-08-09 10:14:09 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-08-17 13:22:51 +0300 |
commit | 15f79efa9022b5076388d21ea4587d911afab963 (patch) | |
tree | 5f1f4aca9f14fd83091cf13cc1826a7b82bef4c5 | |
parent | 72e001d3dee103dc8ba780bb819a18ba22503dd4 (diff) |
Port 2fdf01b70 "linux-gen: debug: utilize new _ODP_WARN() macro"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
-rw-r--r-- | platform/linux-dpdk/odp_system_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/linux-dpdk/odp_system_info.c b/platform/linux-dpdk/odp_system_info.c index c76820e5d..886f7f216 100644 --- a/platform/linux-dpdk/odp_system_info.c +++ b/platform/linux-dpdk/odp_system_info.c @@ -59,8 +59,8 @@ static int read_cache_line_size(void) file = fopen(CACHE_LNSZ_FILE, "rt"); if (file == NULL) { /* File not found */ - _ODP_PRINT("WARN: unable to read host CPU cache line size. " - "Using ODP_CACHE_LINE_SIZE instead.\n"); + _ODP_WARN("Unable to read host CPU cache line size. " + "Using ODP_CACHE_LINE_SIZE instead.\n"); return ODP_CACHE_LINE_SIZE; } @@ -225,7 +225,7 @@ static int system_cache_line(system_info_t *sysinfo) sysinfo->cache_line_size = ret; if (ret != ODP_CACHE_LINE_SIZE) - _ODP_PRINT("WARN: host CPU cache line size and ODP_CACHE_LINE_SIZE don't match.\n"); + _ODP_WARN("Host CPU cache line size and ODP_CACHE_LINE_SIZE don't match.\n"); return 0; } |