diff options
author | Roland McGrath <roland@redhat.com> | 2007-10-23 13:07:39 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2007-10-23 13:07:39 +0000 |
commit | e4c22ea004c02a58f5db5eb53794275344c17958 (patch) | |
tree | ec3713d305f8e9f05b15d29240accc71e98998c5 /libebl | |
parent | 98c5ead4ad9fbf96ad3b54d8ca26e354ddc3398d (diff) | |
download | elfutils-e4c22ea004c02a58f5db5eb53794275344c17958.tar.gz |
2007-10-23 Roland McGrath <roland@redhat.com>
* linux-kernel-modules.c (report_kernel_archive): Reorder the kernel
module to appear first.
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 4 | ||||
-rw-r--r-- | libebl/eblcorenotetypename.c | 18 |
2 files changed, 16 insertions, 6 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index ae31b8f2..86c91781 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,7 @@ +2007-10-18 Roland McGrath <roland@redhat.com> + + * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX. + 2007-10-11 Roland McGrath <roland@redhat.com> * eblobjnote.c (ebl_object_note): Translate target format (byte-swap) diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c index c2b57f9e..44b02376 100644 --- a/libebl/eblcorenotetypename.c +++ b/libebl/eblcorenotetypename.c @@ -86,20 +86,26 @@ ebl_core_note_type_name (ebl, type, buf, len) KNOWNSTYPE (LWPSTATUS), KNOWNSTYPE (LWPSINFO), KNOWNSTYPE (PRFPXREG) +#undef KNOWNSTYPE }; /* Handle standard names. */ if (type < sizeof (knowntypes) / sizeof (knowntypes[0]) && knowntypes[type] != NULL) res = knowntypes[type]; - else if (type == NT_PRXFPREG) - res = "PRXFPREG"; else - { - snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type); + switch (type) + { +#define KNOWNSTYPE(name) case NT_##name: res = #name; break + KNOWNSTYPE (PRXFPREG); + KNOWNSTYPE (PPC_VMX); +#undef KNOWNSTYPE + + default: + snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type); - res = buf; - } + res = buf; + } } return res; |