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);