From 334f2bf8b02779f300d3ca6c1dc01d346eef534a Mon Sep 17 00:00:00 2001 From: wang-yangsong Date: Fri, 21 Jun 2024 17:04:57 +0800 Subject: [PATCH] fix 64 bit bug Signed-off-by: wang-yangsong --- .../native/neural_network_runtime/nncompiled_cache.cpp | 5 +---- frameworks/native/neural_network_runtime/nncompiler.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frameworks/native/neural_network_runtime/nncompiled_cache.cpp b/frameworks/native/neural_network_runtime/nncompiled_cache.cpp index 9b02056..75cf442 100644 --- a/frameworks/native/neural_network_runtime/nncompiled_cache.cpp +++ b/frameworks/native/neural_network_runtime/nncompiled_cache.cpp @@ -95,10 +95,7 @@ OH_NN_ReturnCode NNCompiledCache::Restore(const std::string& cacheDir, } if (static_cast(version) > cacheInfo.version) { - LOGE("[NNCompiledCache] Restore failed, version is not match. The current version is %{public}u, " - "but the cache files version is %{public}lld.", - version, - cacheInfo.version); + LOGE("[NNCompiledCache] Restore failed, version is not match."); return OH_NN_INVALID_PARAMETER; } diff --git a/frameworks/native/neural_network_runtime/nncompiler.cpp b/frameworks/native/neural_network_runtime/nncompiler.cpp index 725bafb..cfa7616 100644 --- a/frameworks/native/neural_network_runtime/nncompiler.cpp +++ b/frameworks/native/neural_network_runtime/nncompiler.cpp @@ -625,7 +625,7 @@ OH_NN_ReturnCode NNCompiler::RestoreFromCacheFile() return ret; } - LOGI("isUpdatable modelCacheInfo--->%{public}lld", modelCacheInfo.version); + LOGI("isUpdatable modelCacheInfo"); const size_t cacheNumber = caches.size(); uint32_t cacheSize = NUMBER_CACHE_INFO_MEMBERS + cacheNumber; -- Gitee