diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-11-24 14:08:43 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-11-25 19:11:36 +0000 |
commit | e8cda2090524b6a129fe40f62397976141c1e12e (patch) | |
tree | ed27c6039dd4c79813aeb08b7fc75da24e66e154 /libctf/ctf-dump.c | |
parent | 96c61be508fa8fdef79f2f3f3b9140dd75b05207 (diff) | |
download | gdb-e8cda2090524b6a129fe40f62397976141c1e12e.zip gdb-e8cda2090524b6a129fe40f62397976141c1e12e.tar.gz gdb-e8cda2090524b6a129fe40f62397976141c1e12e.tar.bz2 |
libctf: Pass format argument to asprintf
libctf/ChangeLog
2020-09-23 H.J. Lu <hongjiu.lu@intel.com>
PR libctf/26934
* ctf-dump.c (ctf_dump_objts): Pass format argument to asprintf.
Diffstat (limited to 'libctf/ctf-dump.c')
-rw-r--r-- | libctf/ctf-dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |