From 8a1db94d3724eaa2cdaa89188aa06560e2e42f78 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Tue, 22 Nov 2022 14:44:40 +0000 Subject: [PATCH] zdump: add missing newlines for log messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Hartmayer Reviewed-by: Steffen Eiden Signed-off-by: Jan Höppner --- zdump/dfi_pv_elf.c | 5 +++-- zdump/pv_utils.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/zdump/dfi_pv_elf.c b/zdump/dfi_pv_elf.c index ed2b9ffa..8d1021e6 100644 --- a/zdump/dfi_pv_elf.c +++ b/zdump/dfi_pv_elf.c @@ -172,7 +172,7 @@ static int pt_notes_add(const struct zg_fh *fh, const Elf64_Phdr *phdr, const un dfi_cpu_add(g_steal_pointer(&cpu_current)); break; default: - util_log_print(UTIL_LOG_WARN, _("Unknown ELF-Note %#x"), note.n_type); + util_log_print(UTIL_LOG_WARN, _("Unknown ELF-Note %#x\n"), note.n_type); __attribute__((fallthrough)); case NT_PRSTATUS: case NT_FPREGSET: @@ -322,7 +322,8 @@ static int dfi_pv_elf_init(void) } break; default: - util_log_print(UTIL_LOG_WARN, _("Unknown ELF-PHDR type %#x"), phdr->p_type); + util_log_print(UTIL_LOG_WARN, _("Unknown ELF-PHDR type %#x\n"), + phdr->p_type); break; } } diff --git a/zdump/pv_utils.c b/zdump/pv_utils.c index c26fd264..6d9f0bb5 100644 --- a/zdump/pv_utils.c +++ b/zdump/pv_utils.c @@ -239,7 +239,7 @@ dfi_cpu_t *pv_decrypt_cpu_note_data(const unsigned int expected_version, GBytes /* Check dump flags */ if (pv_cpu->has_osii) util_log_print(UTIL_LOG_WARN, - _("CPU state may contain partial instruction results")); + _("CPU state may contain partial instruction results\n")); return pv_dfi_cpu_from_pv_cpu(pv_cpu); } @@ -753,7 +753,7 @@ void storage_state_mmap_unref(storage_state_mmap_t *storage_state) if (storage_state->first_page_ptr) { int rc = munmap(storage_state->first_page_ptr, storage_state->mapped_size); if (rc != 0) - util_log_print(UTIL_LOG_WARN, _("munmap has failed")); + util_log_print(UTIL_LOG_WARN, _("munmap has failed\n")); } g_free(storage_state); }