From 02c165fafd38c84dbd3e20c4ab46b0ec16a1bfd8 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Sat, 7 Sep 2019 16:31:36 +0800 Subject: [PATCH] protocol: replace unsupported %llu format string --- .../protocol/dynamic_node_id_server/storage_marshaller.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/storage_marshaller.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/storage_marshaller.hpp index cbf32f8940..83f68e4f2a 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/storage_marshaller.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/storage_marshaller.hpp @@ -62,7 +62,7 @@ public: int setAndGetBack(const IStorageBackend::String& key, uint32_t& inout_value) { IStorageBackend::String serialized; - serialized.appendFormatted("%llu", static_cast(inout_value)); + serialized.appendFormatted("%lu", inout_value); UAVCAN_TRACE("StorageMarshaller", "Set %s = %s", key.c_str(), serialized.c_str()); storage_.set(key, serialized);