summaryrefslogtreecommitdiff
path: root/DevTools/Profiler/DisassemblyModel.cpp
diff options
context:
space:
mode:
authorPaul Scharnofske <31994781+asynts@users.noreply.github.com>2020-10-13 18:34:27 +0200
committerGitHub <noreply@github.com>2020-10-13 18:34:27 +0200
commitd94f674bbb04be38931f1915156e91a2f3a3faeb (patch)
tree80882b085d2796c8a625c6a2c003d2382e27c1e0 /DevTools/Profiler/DisassemblyModel.cpp
parent626bb1be9c51e5d6b92d48e347f461b519fa80e3 (diff)
downloadserenity-d94f674bbb04be38931f1915156e91a2f3a3faeb.zip
Use new format functions in remaining DevTools. (#3755)
* AK: Add formatter for JsonValue. * Inspector: Use new format functions. * Profiler: Use new format functions. * UserspaceEmulator: Use new format functions.
Diffstat (limited to 'DevTools/Profiler/DisassemblyModel.cpp')
-rw-r--r--DevTools/Profiler/DisassemblyModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/Profiler/DisassemblyModel.cpp b/DevTools/Profiler/DisassemblyModel.cpp
index 89a338225a..13b848642f 100644
--- a/DevTools/Profiler/DisassemblyModel.cpp
+++ b/DevTools/Profiler/DisassemblyModel.cpp
@@ -167,11 +167,11 @@ GUI::Variant DisassemblyModel::data(const GUI::ModelIndex& index, GUI::ModelRole
return insn.event_count;
}
if (index.column() == Column::Address)
- return String::format("%#08x", insn.address);
+ return String::formatted("{:p}", insn.address);
if (index.column() == Column::InstructionBytes) {
StringBuilder builder;
for (auto ch : insn.bytes) {
- builder.appendf("%02x ", (u8)ch);
+ builder.appendff("{:02x} ", (u8)ch);
}
return builder.to_string();
}