diff options
Diffstat (limited to 'tests/typeiter2.c')
-rw-r--r-- | tests/typeiter2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/typeiter2.c b/tests/typeiter2.c index 6ddfa388..35b6a12e 100644 --- a/tests/typeiter2.c +++ b/tests/typeiter2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2012, 2013 Red Hat, Inc. +/* Copyright (C) 2012, 2013, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -23,6 +23,7 @@ #include <stdio.h> #include <unistd.h> #include <dwarf.h> +#include <inttypes.h> int main (int argc, char *argv[]) @@ -71,7 +72,8 @@ main (int argc, char *argv[]) if (form == NULL) printf ("fail\n"); else - printf ("ok\n"); + printf ("ok %s [%" PRIx64 "]\n", + dwarf_diename (form), dwarf_dieoffset (form)); } if (dwarf_siblingof (iter, &iter_mem) != 0) |