From: Roland McGrath Date: Fri, 23 Apr 2010 05:38:58 +0000 (-0700) Subject: Fix tests/addrcfi error reporting. X-Git-Tag: elfutils-0.147~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c6ee4b62787738d4524e4a83c97f1a64ce15379;p=thirdparty%2Felfutils.git Fix tests/addrcfi error reporting. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index e4f469c68..60b0847a9 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2010-04-22 Roland McGrath + + * addrcfi.c (handle_cfi): Fix function name in error message. + Use dwarf_errmsg, not dwfl_errmsg, after dwarf_cfi_addrframe. + 2010-04-14 Roland McGrath * Makefile.am (EXTRA_DIST): Add run-test-flag-nobits.sh here too. diff --git a/tests/addrcfi.c b/tests/addrcfi.c index 2a3db05c1..4e042418f 100644 --- a/tests/addrcfi.c +++ b/tests/addrcfi.c @@ -1,5 +1,5 @@ /* Test program for CFI handling. - Copyright (C) 2009 Red Hat, Inc. + Copyright (C) 2009-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -100,7 +100,7 @@ handle_cfi (Dwfl *dwfl, const char *which, Dwarf_CFI *cfi, int result = dwarf_cfi_addrframe (cfi, pc - stuff->bias, &stuff->frame); if (result != 0) { - error (0, 0, "dwarf_addrframe (%s): %s", which, dwfl_errmsg (-1)); + error (0, 0, "dwarf_cfi_addrframe (%s): %s", which, dwarf_errmsg (-1)); return 1; }