From 60cbfb95522b33c3ec1dd4fa32da261c6c3d6a9d Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 28 Dec 2008 13:14:48 +0000 Subject: Fix -Werror=format-security warning (Frederik Himpe/Lennert Buytenhek) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6134 c046a42c-6fe2-441c-8c8c-71466251a162 --- monitor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 8cec8c9e12..745c3350b2 100644 --- a/monitor.c +++ b/monitor.c @@ -1936,10 +1936,9 @@ static const MonitorDef monitor_defs[] = { { NULL }, }; -static void expr_error(const char *fmt) +static void expr_error(const char *msg) { - term_printf(fmt); - term_printf("\n"); + term_printf("%s\n", msg); longjmp(expr_env, 1); } -- cgit v1.2.3