Fix formatting of pgoff.

PiperOrigin-RevId: 397763298
Change-Id: I027ef4cd381247521ee2bcce57a17c9d480efb22
This commit is contained in:
Catalin Patulea 2021-09-20 09:01:39 -07:00 committed by Copybara-Service
parent c400f92eaa
commit b5fb483b11

View File

@ -102,7 +102,7 @@ absl::StatusOr<std::map<uint64_t, std::string>> LoadSymbolsMap(pid_t pid) {
// the next iteration.
std::string map = absl::StrCat("map:", entry.path);
if (entry.pgoff) {
absl::StrAppend(&map, "+0x%x", entry.pgoff);
absl::StrAppend(&map, "+0x", absl::Hex(entry.pgoff));
}
addr_to_symbol[entry.start] = map;
addr_to_symbol[entry.end] = "";