Skip to contentSkip to conversation

log: remove unneeded new line

PATCH In review BALATON Zoltan 2 participants 4 messages Jan 19, 2023 – Mar 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 log: remove unneeded new line

The help text of the -d plugin option has a new line at the end which is not needed as one is added automatically. Fixing it removes the unexpected empty line in -d help output.

---
 util/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/log.c +1 -1
index a3c097f320..3fe74481da 100644
@@ -489,7 +489,7 @@ const QEMULogItem qemu_log_items[] = {
       "do not chain compiled TBs so that \"exec\" and \"cpu\" show\n"
       "complete traces" },
 #ifdef CONFIG_PLUGIN
-    { CPU_LOG_PLUGIN, "plugin", "output from TCG plugins\n"},
+    { CPU_LOG_PLUGIN, "plugin", "output from TCG plugins"},
 #endif
     { LOG_STRACE, "strace",
       "log every user-mode syscall, its input, and its result" },
Signature · 1 line
2.30.6
#2 lore raw
In reply to BALATON Zoltan
Quoted 5 lines · BALATON Zoltan

The help text of the -d plugin option has a new line at the end which is not needed as one is added automatically. Fixing it removes the unexpected empty line in -d help output.

Ping?

Quoted 18 lines

---
util/log.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
util/log.c +1 -1
index a3c097f320..3fe74481da 100644
@@ -489,7 +489,7 @@ const QEMULogItem qemu_log_items[] = {
      "do not chain compiled TBs so that \"exec\" and \"cpu\" show\n"
      "complete traces" },
 #ifdef CONFIG_PLUGIN
-    { CPU_LOG_PLUGIN, "plugin", "output from TCG plugins\n"},
+    { CPU_LOG_PLUGIN, "plugin", "output from TCG plugins"},
 #endif
    { LOG_STRACE, "strace",
      "log every user-mode syscall, its input, and its result" },
#3 lore raw
Quoted 8 lines · BALATON Zoltan
Quoted 5 lines · BALATON Zoltan

The help text of the -d plugin option has a new line at the end which is not needed as one is added automatically. Fixing it removes the unexpected empty line in -d help output.

Ping?

Merged as commit cb9291e550.