debug-printing via complain()
authorDima Kogan <dima@secretsauce.net>
Tue, 22 Apr 2014 19:58:13 +0000 (12:58 -0700)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:25 +0000 (20:38 +0900)
dwarf_prototypes.c

index 4a07d49..e4677f2 100644 (file)
@@ -423,7 +423,7 @@ static bool getStructure(struct arg_type_info* struct_info, Dwarf_Die* parent)
        }
 
        while(1) {
-               fprintf(stderr, "member: 0x%02x/'%s'\n", dwarf_tag(&die), dwarf_diename(&die) );
+               complain(&die, "member: 0x%02x", dwarf_tag(&die) );
 
                if( dwarf_tag(&die) != DW_TAG_member )
                {