Commit 53cf7834 authored by Kazuhito Hagio's avatar Kazuhito Hagio
Browse files

[PATCH] x86_64: fix an unnecessary message with --mem-usage option



commit bc8b3bbf ("arm64: restore info->page_offset and implement
paddr_to_vaddr_arm64()") added get_phys_base() to show_mem_usage(),
but at this time there is no vmcoreinfo yet, so get_phys_base_x86_64()
executes SYMBOL_INIT() and prints the following message.

  # makedumpfile --mem-usage /proc/kcore
  init_dwarf_info: Can't find absolute path to debuginfo file.
  ...

This patch adds the check if vmlinux is specified, and suppress the
message.

Signed-off-by: default avatarKazuhito Hagio <k-hagio@ab.jp.nec.com>
parent bc8b3bbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment