aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-bpf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-25 16:11:51 +0930
committerAlan Modra <amodra@gmail.com>2023-07-26 10:04:31 +0930
commitfafcbd14a7e562a3449728cfa78caa8a640dc402 (patch)
tree4ca1b11dc8b2a62779e1ffa7d01a0190a3edac6d /gas/config/tc-bpf.c
parentaf67f1d01d2b5eeab673fcf28fd26169f8a24738 (diff)
downloadbinutils-fafcbd14a7e562a3449728cfa78caa8a640dc402.zip
binutils-fafcbd14a7e562a3449728cfa78caa8a640dc402.tar.gz
binutils-fafcbd14a7e562a3449728cfa78caa8a640dc402.tar.bz2
bpf: format not a string literal
* config/tc-bpf.c (md_assemble): Correct as_bad call.
Diffstat (limited to 'gas/config/tc-bpf.c')
-rw-r--r--gas/config/tc-bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c
index c56b8fe..095b05a 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);
}