[PATCH 3/3] libctf: Pass format argument to asprintf
Nick Alcock
nick.alcock@oracle.com
Tue Nov 24 18:59:21 GMT 2020
From: "H.J. Lu" <hjl.tools@gmail.com>
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.
---
libctf/ctf-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.29.0.249.g249b51256f
More information about the Binutils
mailing list