From: Alan Modra Date: Tue, 25 Jul 2023 06:41:51 +0000 (+0930) Subject: bpf: format not a string literal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fafcbd14a7e562a3449728cfa78caa8a640dc402;p=binutils-gdb.git bpf: format not a string literal * config/tc-bpf.c (md_assemble): Correct as_bad call. --- diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c index c56b8fe984f..095b05ac7af 100644 --- a/gas/config/tc-bpf.c +++ b/gas/config/tc-bpf.c @@ -853,7 +853,7 @@ md_assemble (char *str ATTRIBUTE_UNUSED) as_bad (_("unrecognized instruction `%s'"), str); if (errmsg != NULL) { - as_bad (errmsg); + as_bad ("%s", errmsg); free (errmsg); }