From 2fa2bf09d04a22a61e3f9360ac4e220cf63b986f Mon Sep 17 00:00:00 2001 From: Rajasekaran Kalidoss Date: Mon, 22 Apr 2024 09:11:02 +0200 Subject: Fix compiler warnings in core_driver This patch fixes warning messages reported by the compiler related to argument format and type mismatch. Change-Id: I0ed528649414555f3136e745f37a78344a2b0add Signed-off-by: Rajasekaran Kalidoss --- src/ethosu_driver.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c index 836f22d..dead0b9 100644 --- a/src/ethosu_driver.c +++ b/src/ethosu_driver.c @@ -1,6 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2019-2023 Arm Limited and/or its affiliates - * + * SPDX-FileCopyrightText: Copyright 2019-2024 Arm Limited and/or its affiliates * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -327,7 +326,7 @@ static int handle_command_stream(struct ethosu_driver *drv, const uint8_t *cmd_s { if (0 != (drv->job.base_addr[i] & MASK_16_BYTE_ALIGN)) { - LOG_ERR("Base addr %d: 0x%llx not aligned to 16 bytes", i, drv->job.base_addr[i]); + LOG_ERR("Base addr %d: 0x%" PRIx64 "not aligned to 16 bytes", i, drv->job.base_addr[i]); return -1; } } @@ -426,7 +425,7 @@ int ethosu_init(struct ethosu_driver *drv, } } - drv->fast_memory = (uint32_t)fast_memory; + drv->fast_memory = (uint64_t)fast_memory; drv->fast_memory_size = fast_memory_size; drv->power_request_counter = 0; @@ -671,7 +670,7 @@ int ethosu_invoke_async(struct ethosu_driver *drv, if (base_addr_size != NULL && base_addr_size[FAST_MEMORY_BASE_ADDR_INDEX] > drv->fast_memory_size) { - LOG_ERR("Fast memory area too small. fast_memory_size=%u, base_addr_size=%u", + LOG_ERR("Fast memory area too small. fast_memory_size=%zu, base_addr_size=%zu", drv->fast_memory_size, base_addr_size[FAST_MEMORY_BASE_ADDR_INDEX]); goto err; -- cgit v1.2.1