+2020-12-15 Dmitry V. Levin <ldv@altlinux.org>
+
+ * eblbackendname.c (ebl_backend_name): Replace gettext(...) with _(...).
+ * eblcorenotetypename.c (ebl_core_note_type_name): Likewise.
+ * ebldynamictagname.c (ebl_dynamic_tag_name): Likewise.
+ * eblobjnote.c (ebl_object_note): Likewise.
+ * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
+ * eblosabiname.c (ebl_osabi_name): Likewise.
+ * eblsectionname.c (ebl_section_name): Likewise.
+ * eblsectiontypename.c (ebl_section_type_name): Likewise.
+ * eblsegmenttypename.c (ebl_segment_type_name): Likewise.
+ * eblsymbolbindingname.c (ebl_symbol_binding_name): Likewise.
+ * eblsymboltypename.c (ebl_symbol_type_name): Likewise.
+
2020-10-19 Mark Wielaard <mark@klomp.org>
* eblopenbackend.c (tilegx_init): Removed.
const char *
ebl_backend_name (Ebl *ebl)
{
- return ebl != NULL ? ebl->emulation : gettext ("No backend");
+ return ebl != NULL ? ebl->emulation : _("No backend");
}
#undef KNOWNSTYPE
default:
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
+ snprintf (buf, len, "%s: %" PRIu32, _("<unknown>"), type);
res = buf;
}
res = "FILTER";
else
{
- snprintf (buf, len, gettext ("<unknown>: %#" PRIx64), tag);
+ snprintf (buf, len, _("<unknown>: %#" PRIx64), tag);
res = buf;
{
if (type != 3)
{
- printf (gettext ("unknown SDT version %u\n"), type);
+ printf (_("unknown SDT version %u\n"), type);
return;
}
if (descsz < addrs_size + 3)
{
invalid_sdt:
- printf (gettext ("invalid SDT probe descriptor\n"));
+ printf (_("invalid SDT probe descriptor\n"));
return;
}
sem = addrs.a64[2];
}
- printf (gettext (" PC: "));
+ printf (_(" PC: "));
printf ("%#" PRIx64 ",", pc);
- printf (gettext (" Base: "));
+ printf (_(" Base: "));
printf ("%#" PRIx64 ",", base);
- printf (gettext (" Semaphore: "));
+ printf (_(" Semaphore: "));
printf ("%#" PRIx64 "\n", sem);
- printf (gettext (" Provider: "));
+ printf (_(" Provider: "));
printf ("%s,", provider);
- printf (gettext (" Name: "));
+ printf (_(" Name: "));
printf ("%s,", pname);
- printf (gettext (" Args: "));
+ printf (_(" Args: "));
printf ("'%s'\n", args);
return;
}
case NT_GNU_BUILD_ID:
if (strcmp (name, "GNU") == 0 && descsz > 0)
{
- printf (gettext (" Build ID: "));
+ printf (_(" Build ID: "));
uint_fast32_t i;
for (i = 0; i < descsz - 1; ++i)
printf ("%02" PRIx8, (uint8_t) desc[i]);
case NT_GNU_GOLD_VERSION:
if (strcmp (name, "GNU") == 0 && descsz > 0)
/* A non-null terminated version string. */
- printf (gettext (" Linker version: %.*s\n"),
+ printf (_(" Linker version: %.*s\n"),
(int) descsz, desc);
break;
break;
}
- printf (gettext (" OS: %s, ABI: "), os);
+ printf (_(" OS: %s, ABI: "), os);
for (size_t cnt = 1; cnt < descsz / 4; ++cnt)
{
if (cnt > 1)
return goknowntypes[type];
else
{
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
+ snprintf (buf, len, "%s: %" PRIu32, _("<unknown>"), type);
return buf;
}
}
if (descsz == 0 && type == NT_VERSION)
return "VERSION";
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
+ snprintf (buf, len, "%s: %" PRIu32, _("<unknown>"), type);
return buf;
}
res = knowntypes[type];
else
{
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
+ snprintf (buf, len, "%s: %" PRIu32, _("<unknown>"), type);
res = buf;
}
else if (osabi == ELFOSABI_ARM)
res = "Arm";
else if (osabi == ELFOSABI_STANDALONE)
- res = gettext ("Stand alone");
+ res = _("Stand alone");
else
{
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), osabi);
+ snprintf (buf, len, "%s: %d", _("<unknown>"), osabi);
res = buf;
}
else if (section >= SHN_LORESERVE && section <= SHN_HIRESERVE)
snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE);
else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
+ snprintf (buf, len, "%s: %d", _("<unknown>"), section);
res = buf;
}
&& (unsigned int) section <= SHT_HIUSER)
snprintf (buf, len, "SHT_LOUSER+%x", section - SHT_LOUSER);
else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
+ snprintf (buf, len, "%s: %d", _("<unknown>"), section);
res = buf;
break;
else if (segment >= PT_LOPROC && segment <= PT_HIPROC)
snprintf (buf, len, "LOPROC+%d", segment - PT_LOPROC);
else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), segment);
+ snprintf (buf, len, "%s: %d", _("<unknown>"), segment);
res = buf;
}
else if (binding >= STB_LOOS && binding <= STB_HIOS)
snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
else
- snprintf (buf, len, gettext ("<unknown>: %d"), binding);
+ snprintf (buf, len, _("<unknown>: %d"), binding);
res = buf;
}
else if (symbol >= STT_LOOS && symbol <= STT_HIOS)
snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS);
else
- snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
+ snprintf (buf, len, _("<unknown>: %d"), symbol);
res = buf;
}