diff options
author | Rajasekaran Kalidoss <rajasekaran.kalidoss@arm.com> | 2024-04-22 09:11:02 +0200 |
---|---|---|
committer | Jonny Svärd <jonny.svaerd@arm.com> | 2024-04-23 07:48:50 +0000 |
commit | 2fa2bf09d04a22a61e3f9360ac4e220cf63b986f (patch) | |
tree | 62af3cc10ae4826b6a1c06d93452b076e053201c | |
parent | 149b1f38e8ca67aef965b8f5b1dac5d1e2155c65 (diff) | |
download | ethos-u-core-driver-master.tar.gz |
This patch fixes warning messages reported by the compiler related to
argument format and type mismatch.
Change-Id: I0ed528649414555f3136e745f37a78344a2b0add
Signed-off-by: Rajasekaran Kalidoss <rajasekaran.kalidoss@arm.com>
-rw-r--r-- | src/ethosu_driver.c | 9 |
1 files changed, 4 insertions, 5 deletions
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 <open-source-office@arm.com> - * + * SPDX-FileCopyrightText: Copyright 2019-2024 Arm Limited and/or its affiliates <open-source-office@arm.com> * 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; |