summaryrefslogtreecommitdiffstats
path: root/tests/dwflmodtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dwflmodtest.c')
-rw-r--r--tests/dwflmodtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c
index c34cac42..94f960fa 100644
--- a/tests/dwflmodtest.c
+++ b/tests/dwflmodtest.c
@@ -188,8 +188,8 @@ print_module (Dwfl_Module *mod __attribute__ ((unused)),
Dwarf *dw, Dwarf_Addr bias,
void *arg)
{
- printf ("module: %30s %08" PRIx64 " %12p %" PRIx64 " (%s)\n",
- name, base, dw, bias, dwfl_errmsg (-1));
+ printf ("module: %30s %08" PRIx64 " %s %" PRIx64 " (%s)\n",
+ name, base, dw == NULL ? "no" : "DWARF", bias, dwfl_errmsg (-1));
if (dw != NULL && *(const bool *) arg)
{