From d946c2884d66f64c4b671bbed16283bcae3c5667 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 30 Mar 2010 20:43:36 +0000 Subject: sim: fix printf format warning about non-string literal This is the normal "passing a buffer straight to printf makes GCC warn". While we know this particular case is fine, the trend in this source tree is to fix this anyways to avoid the warnings. --- sim/common/sim-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/sim-utils.c') diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index fb84eb3..9f9104e 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -170,7 +170,7 @@ sim_io_eprintf_cpu (sim_cpu *cpu, const char *fmt, ...) va_list ap; va_start (ap, fmt); - sim_io_eprintf (sd, sim_cpu_msg_prefix (cpu)); + sim_io_eprintf (sd, "%s", sim_cpu_msg_prefix (cpu)); sim_io_evprintf (sd, fmt, ap); va_end (ap); } -- cgit v1.1