From e8cda2090524b6a129fe40f62397976141c1e12e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 24 Nov 2020 14:08:43 +0000 Subject: [PATCH] libctf: Pass format argument to asprintf libctf/ChangeLog 2020-09-23 H.J. Lu PR libctf/26934 * ctf-dump.c (ctf_dump_objts): Pass format argument to asprintf. --- libctf/ChangeLog | 5 +++++ libctf/ctf-dump.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libctf/ChangeLog b/libctf/ChangeLog index adeedeb9249..f12c88acfa2 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,8 @@ +2020-09-23 H.J. Lu + + PR libctf/26934 + * ctf-dump.c (ctf_dump_objts): Pass format argument to asprintf. + 2020-11-23 Nick Alcock * ctf-impl.h (ctf_dict_t) : New. diff --git a/libctf/ctf-dump.c b/libctf/ctf-dump.c index ccf4b3cb2b8..b0de345da32 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; -- 2.30.2