diff options
author | Per Åstrand <per.astrand@arm.com> | 2020-09-25 15:04:26 +0200 |
---|---|---|
committer | Per Åstrand <per.astrand@arm.com> | 2020-09-25 15:05:13 +0200 |
commit | 91a91738c0d7f4128edd5f2806b6b5292a698608 (patch) | |
tree | cf885fb08c8e5c0a5a3b2c2f26bb5906c9446886 /applications/inference_process/src | |
parent | 72fa50bcf362643431c39642e5af30781714b2fc (diff) | |
download | ethos-u-core-software-91a91738c0d7f4128edd5f2806b6b5292a698608.tar.gz |
Move to inttypes format specifiers for printf
Change-Id: I799add461ab0db5b86c78a440937d722620e6d3b
Diffstat (limited to 'applications/inference_process/src')
-rw-r--r-- | applications/inference_process/src/inference_process.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/inference_process/src/inference_process.cc b/applications/inference_process/src/inference_process.cc index 5807530..7f4a309 100644 --- a/applications/inference_process/src/inference_process.cc +++ b/applications/inference_process/src/inference_process.cc @@ -24,6 +24,8 @@ #include "inference_process.hpp" +#include <inttypes.h> + #ifndef TENSOR_ARENA_SIZE #define TENSOR_ARENA_SIZE (1024) #endif @@ -44,7 +46,7 @@ void print_output_data(TfLiteTensor *output, size_t bytesToPrint) { } printf("%d],\n", output->dims->data[dims_size - 1]); - printf("\"data_address\": \"%08x\",\n", (uint32_t)output->data.data); + printf("\"data_address\": \"%08" PRIx32 "\",\n", (uint32_t)output->data.data); printf("\"data\":\""); for (int i = 0; i < numBytesToPrint - 1; ++i) { if (i % 16 == 0 && i != 0) { @@ -135,7 +137,7 @@ bool InferenceProcess::runJob(InferenceJob &job) { // Get model handle and verify that the version is correct const tflite::Model *model = ::tflite::GetModel(job.networkModel.data); if (model->version() != TFLITE_SCHEMA_VERSION) { - printf("Model provided is schema version %d not equal to supported version %d.\n", + printf("Model provided is schema version %" PRIu32 " not equal to supported version %d.\n", model->version(), TFLITE_SCHEMA_VERSION); return true; |