فهرست منبع

UserspaceEmulator: Fix inconsistent log formatting

Remove some extra { and } around the PID in log output that weren't used
consistently in all logging.
Andreas Kling 3 سال پیش
والد
کامیت
aff2b42f82
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      Userland/DevTools/UserspaceEmulator/Emulator.cpp

+ 3 - 3
Userland/DevTools/UserspaceEmulator/Emulator.cpp

@@ -446,12 +446,12 @@ String Emulator::create_backtrace_line(FlatPtr address)
 {
 {
     auto maybe_symbol = symbol_at(address);
     auto maybe_symbol = symbol_at(address);
     if (!maybe_symbol.has_value()) {
     if (!maybe_symbol.has_value()) {
-        return String::formatted("=={{{}}}==    {:p}", getpid(), address);
+        return String::formatted("=={}==    {:p}", getpid(), address);
     } else if (!maybe_symbol->source_position.has_value()) {
     } else if (!maybe_symbol->source_position.has_value()) {
-        return String::formatted("=={{{}}}==    {:p}  [{}]: {}", getpid(), address, maybe_symbol->lib_name, maybe_symbol->symbol);
+        return String::formatted("=={}==    {:p}  [{}]: {}", getpid(), address, maybe_symbol->lib_name, maybe_symbol->symbol);
     } else {
     } else {
         auto const& source_position = maybe_symbol->source_position.value();
         auto const& source_position = maybe_symbol->source_position.value();
-        return String::formatted("=={{{}}}==    {:p}  [{}]: {} (\e[34;1m{}\e[0m:{})", getpid(), address, maybe_symbol->lib_name, maybe_symbol->symbol, LexicalPath::basename(source_position.file_path), source_position.line_number);
+        return String::formatted("=={}==    {:p}  [{}]: {} (\e[34;1m{}\e[0m:{})", getpid(), address, maybe_symbol->lib_name, maybe_symbol->symbol, LexicalPath::basename(source_position.file_path), source_position.line_number);
     }
     }
 }
 }