]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
stack: Fix error message when dwfl_core_file_attach fails.
authorMark Wielaard <mark@klomp.org>
Mon, 24 Jun 2019 22:21:42 +0000 (00:21 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 24 Jun 2019 22:21:42 +0000 (00:21 +0200)
Reported-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/stack.c

index 2cde63ce6ba361d7f99868a196f101bdf2e8d7c8..c78e6fa18b399e780816e07157bf5ac562f89030 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-25  Mark Wielaard  <mark@klomp.org>
+
+       * stack.c (parse_opt): Fix dwfl_core_file_attach error message.
+
 2019-06-18  Mark Wielaard  <mark@klomp.org>
 
        * strip.c (handle_elf): Use elf_begin ELF_C_WRITE, instead of
index c5f347e1143a11d4f8132a04758ebb941b983e48..4daabce71a9f7db60a98f5287cc2ec0e6577729c 100644 (file)
@@ -608,7 +608,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
       if (core != NULL)
        {
          if (dwfl_core_file_attach (dwfl, core) < 0)
-           error (EXIT_BAD, 0, "dwfl_core_file_report: %s", dwfl_errmsg (-1));
+           error (EXIT_BAD, 0, "dwfl_core_file_attach: %s", dwfl_errmsg (-1));
        }
 
       /* Makes sure we are properly attached.  */