replaced zu with lu

This commit is contained in:
Robin Müller 2021-01-15 15:21:13 +01:00
parent eb5548333e
commit f69d6d49c7
2 changed files with 3 additions and 2 deletions

View File

@ -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<unsigned long>(size));
#endif
if(type == OutputType::HEX) {
arrayprinter::printHex(data, size, maxCharPerLine);

View File

@ -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<unsigned long>(stackMb));
#endif
}
else if(errno == EINVAL) {