From fafcbd14a7e562a3449728cfa78caa8a640dc402 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 25 Jul 2023 16:11:51 +0930 Subject: [PATCH] bpf: format not a string literal * config/tc-bpf.c (md_assemble): Correct as_bad call. --- gas/config/tc-bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2