From: Dongju Chae Date: Tue, 11 Aug 2020 09:22:55 +0000 (+0900) Subject: [Coverity] Resolve coverity issues due to printf format X-Git-Tag: accepted/tizen/unified/20220103.130045~330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=314ef23d5a4bb7f8cb8938905060da9965549a22;p=platform%2Fadaptation%2Fnpu%2Ftrix-engine.git [Coverity] Resolve coverity issues due to printf format This patch resolves coveirty issues due to invalid type in printf format (PRINTF_ARGS). Signed-off-by: Dongju Chae --- diff --git a/src/core/ne-model.cc b/src/core/ne-model.cc index 0729d24..9420603 100644 --- a/src/core/ne-model.cc +++ b/src/core/ne-model.cc @@ -60,7 +60,7 @@ Metadata::extractMetadata (void *data) meta.reset (Metadata_v3::createInstance (meta_data)); break; default: - logerr (TAG, "Invalid NPU binary format version: %d\n", + logerr (TAG, "Invalid NPU binary format version: %" PRIu64 "\n", NPUBIN_VERSION (meta_data->magiccode)); break; } diff --git a/src/core/ne-segment-table.cc b/src/core/ne-segment-table.cc index 75b9fb7..82dd073 100644 --- a/src/core/ne-segment-table.cc +++ b/src/core/ne-segment-table.cc @@ -140,7 +140,7 @@ SegmentTable::createWeightSegment (const Model *model) return 0; if (meta->getWeightSize () > size) { - logerr (TAG, "The size of weight (%u) is larger than segment size (%u)\n", + logerr (TAG, "The size of weight (%" PRIu64 ") is larger than segment size (%u)\n", meta->getWeightSize (), size); return -EINVAL; }