From f69d6d49c75998d76d30bb51d3b783332283152c Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Fri, 15 Jan 2021 15:21:13 +0100 Subject: [PATCH] replaced zu with lu --- globalfunctions/arrayprinter.cpp | 3 ++- osal/linux/PosixThread.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/globalfunctions/arrayprinter.cpp b/globalfunctions/arrayprinter.cpp index 25d6fcf4b..b50aeb21c 100644 --- a/globalfunctions/arrayprinter.cpp +++ b/globalfunctions/arrayprinter.cpp @@ -10,7 +10,8 @@ void arrayprinter::print(const uint8_t *data, size_t size, OutputType type, } sif::info << "["; #else - sif::printInfo("Printing data with size %zu: [", size); + // TODO: Use %zu or %lu depending on whether C99 support is given. + sif::printInfo("Printing data with size %lu: [", static_cast(size)); #endif if(type == OutputType::HEX) { arrayprinter::printHex(data, size, maxCharPerLine); diff --git a/osal/linux/PosixThread.cpp b/osal/linux/PosixThread.cpp index 2499b442e..bd8e72583 100644 --- a/osal/linux/PosixThread.cpp +++ b/osal/linux/PosixThread.cpp @@ -152,7 +152,7 @@ void PosixThread::createTask(void* (*fnc_)(void*), void* arg_) { " the requested " << stackMb << " MB" << std::endl; #else sif::printError("PosixThread::createTask: Insufficient memory for " - "the requested %zu MB\n", stackMb); + "the requested %lu MB\n", static_cast(stackMb)); #endif } else if(errno == EINVAL) {