From 7ced155f95345b336ba987016e7a654a5b53df49 Mon Sep 17 00:00:00 2001
From: "Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics"
Date: Tue, 2 Feb 2021 08:43:47 +0100
Subject: [PATCH] [ML] Fixed logger type with macro
For some architectures int64_t is not casted to lld, for partablitiy
stackoverflow suggests using macro.
[Verification] Code compiles for aarch64 architecture
Change-Id: I7aaa3dabeacae6ea7b212c09c5070ff011c64ab1
---
src/ml/ml_pipeline_nodeinfo.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/ml/ml_pipeline_nodeinfo.cc b/src/ml/ml_pipeline_nodeinfo.cc
index c6ebfbfa..d01f997b 100644
--- a/src/ml/ml_pipeline_nodeinfo.cc
+++ b/src/ml/ml_pipeline_nodeinfo.cc
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include
#include
#include "common/logger.h"
@@ -122,7 +123,7 @@ PlatformResult NodeInfo::getProperty(const std::string& name, const std::string&
get_error_message(ret));
return util::ToPlatformResult(ret, "Could not get property of NodeInfo");
}
- LoggerD("getProperty Int64 %lld", val);
+ LoggerD("getProperty Int64 %" PRId64, val);
property->insert(std::make_pair(kProperty, picojson::value(static_cast(val))));
} else if (kUINT32 == type) {
uint32_t val;
@@ -142,7 +143,7 @@ PlatformResult NodeInfo::getProperty(const std::string& name, const std::string&
get_error_message(ret));
return util::ToPlatformResult(ret, "Could not get property of NodeInfo");
}
- LoggerD("getProperty UInt64 %llu", val);
+ LoggerD("getProperty UInt64 %" PRIu64, val);
property->insert(std::make_pair(kProperty, picojson::value(static_cast(val))));
} else if (kSTRING == type) {
char* val;
--
2.34.1