Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2e8ad2 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

RootCanal: Fix sign of printf format

size_t is unsigned, so we use %zu

Change-Id: Ic309393787b435c288df3bc29217db169e12b448
Test: Manual
Bug: 261188171
parent 12340c0a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -436,7 +436,7 @@ static std::vector<uint8_t> generate_device_name(size_t device_nr,
  std::vector<uint8_t> output;
  output.resize(device_name_len + 1);
  int written_len = std::snprintf(reinterpret_cast<char*>(output.data()),
                                  output.size(), "#%02zd device", device_nr);
                                  output.size(), "#%02zu device", device_nr);
  // Remove the null terminator, not used for the device name
  // since it is framed in most cases.
  output.resize(device_name_len);