mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
protocol: replace unsupported %llu format string
This commit is contained in:
committed by
Daniel Agar
parent
ebfa20c994
commit
02c165fafd
@@ -62,7 +62,7 @@ public:
|
||||
int setAndGetBack(const IStorageBackend::String& key, uint32_t& inout_value)
|
||||
{
|
||||
IStorageBackend::String serialized;
|
||||
serialized.appendFormatted("%llu", static_cast<unsigned long long>(inout_value));
|
||||
serialized.appendFormatted("%lu", inout_value);
|
||||
|
||||
UAVCAN_TRACE("StorageMarshaller", "Set %s = %s", key.c_str(), serialized.c_str());
|
||||
storage_.set(key, serialized);
|
||||
|
||||
Reference in New Issue
Block a user