aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libctf/ChangeLog5
-rw-r--r--libctf/ctf-dump.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index adeedeb..f12c88a 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR libctf/26934
+ * ctf-dump.c (ctf_dump_objts): Pass format argument to asprintf.
+
2020-11-23 Nick Alcock <nick.alcock@oracle.com>
* ctf-impl.h (ctf_dict_t) <ctf_symtab_little_endian>: New.
diff --git a/libctf/ctf-dump.c b/libctf/ctf-dump.c
index ccf4b3c..b0de345 100644
--- a/libctf/ctf-dump.c
+++ b/libctf/ctf-dump.c
@@ -403,7 +403,7 @@ ctf_dump_objts (ctf_dict_t *fp, ctf_dump_state_t *state, int functions)
goto out;
}
- if (asprintf (&typestr, ctf_errmsg (ctf_errno (fp))) < 0)
+ if (asprintf (&typestr, _("error: %s"), ctf_errmsg (ctf_errno (fp))) < 0)
goto oom;
err = -1;