From e8cda2090524b6a129fe40f62397976141c1e12e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 24 Nov 2020 14:08:43 +0000 Subject: 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/ctf-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libctf/ctf-dump.c') 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; -- cgit v1.1