+2018-06-07 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (main): Lookup "no" for no_str.
+ (print_debug_abbrev_section): Use yes_str and no_str.
+ (print_form_data): Likewise.
+
2018-06-04 Mark Wielaard <mark@klomp.org>
* readelf (format_result): New static char pointer.
/* Look up once. */
yes_str = gettext ("yes");
- no_str = gettext ("yes");
+ no_str = gettext ("no");
/* Parse and process arguments. */
int remaining;
printf (gettext (" [%5u] offset: %" PRId64
", children: %s, tag: %s\n"),
code, (int64_t) offset,
- has_children ? gettext ("yes") : gettext ("no"),
+ has_children ? yes_str : no_str,
dwarf_tag_name (tag));
size_t cnt = 0;
if (readendp - readp < 1)
goto invalid_data;
val = *readp++;
- printf ("%s", val != 0 ? gettext ("yes") : gettext ("no"));
+ printf ("%s", val != 0 ? yes_str : no_str);
break;
case DW_FORM_string: