Commit dac94862 authored by Michael Ott's avatar Michael Ott
Browse files

Add leading zeros to sensorid in toString()

parent 3055629d
...@@ -159,7 +159,7 @@ std::string SensorId::serialize() const ...@@ -159,7 +159,7 @@ std::string SensorId::serialize() const
std::string SensorId::toString() const std::string SensorId::toString() const
{ {
char buf[33]; char buf[33];
snprintf(buf, sizeof(buf), "%" PRIx64 "%" PRIx64, data.raw[0], data.raw[1]); snprintf(buf, sizeof(buf), "%016" PRIx64 "%016" PRIx64, data.raw[0], data.raw[1]);
return std::string(buf); return std::string(buf);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment