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

Commit 27461cb8 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Stanley Tng
Browse files

Make loghex properly count numer length

Test: manual logs observation
Change-Id: I7ea8d4afa5ea980f11067a8dd920a1735cf28993
parent 819011b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -734,7 +734,7 @@ std::string loghex(T x) {
                "loghex parameter must be integral.");
  std::stringstream tmp;
  tmp << std::showbase << std::internal << std::hex << std::setfill('0')
      << std::setw(sizeof(T) / 4 + 2) << x;
      << std::setw((sizeof(T) * 2) + 2) << +x;
  return tmp.str();
}