sim: io: add printf attributes to vprintf funcs too

The compiler can still do basic format checks with vprintf style
funcs, so add the printf attribute to these.
This commit is contained in:
Mike Frysinger
2021-06-27 23:23:40 -04:00
parent a1d9117f94
commit fda2f85e58
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-io.h (sim_io_vprintf): Add ATTRIBUTE_PRINTF.
(sim_io_evprintf): Likewise.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-io.c (sim_io_error): Change "" to " ".

View File

@@ -65,13 +65,15 @@ void sim_io_printf (SIM_DESC sd,
const char *fmt,
...) ATTRIBUTE_PRINTF (2, 3);
void sim_io_vprintf (SIM_DESC sd, const char *fmt, va_list ap);
void sim_io_vprintf (SIM_DESC sd, const char *fmt, va_list ap)
ATTRIBUTE_PRINTF (2, 0);
void sim_io_eprintf (SIM_DESC sd,
const char *fmt,
...) ATTRIBUTE_PRINTF (2, 3);
void sim_io_evprintf (SIM_DESC sd, const char *fmt, va_list ap);
void sim_io_evprintf (SIM_DESC sd, const char *fmt, va_list ap)
ATTRIBUTE_PRINTF (2, 0);
void sim_io_error (SIM_DESC sd,
const char *fmt,