diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-15 01:09:49 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-16 01:56:22 -0400 |
commit | b80d4475804d5f3c4e9d996229e1569b7b3c8426 (patch) | |
tree | fdecb5843c375feecf5bb1c3ac19f9c3ee6b4fa4 /sim/mips/interp.c | |
parent | 6828a30253e55983b887dcd8f947a4d771aff82b (diff) | |
download | gdb-b80d4475804d5f3c4e9d996229e1569b7b3c8426.zip gdb-b80d4475804d5f3c4e9d996229e1569b7b3c8426.tar.gz gdb-b80d4475804d5f3c4e9d996229e1569b7b3c8426.tar.bz2 |
sim: mips: add printf attribute to trace func
This helps catch format errors in code, although they're all clean
at this point already.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r-- | sim/mips/interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index 5645f01..a6f504a 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -1722,7 +1722,7 @@ dotrace (SIM_DESC sd, int type, SIM_ADDR address, int width, - char *comment,...) + const char *comment, ...) { if (STATE & simTRACE) { va_list ap; |