summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-28 13:14:48 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-28 13:14:48 +0000
commit60cbfb95522b33c3ec1dd4fa32da261c6c3d6a9d (patch)
tree90c745b1f6bad067d1bfdd5eb15301ed484f5d15 /monitor.c
parentbd89f43f3254f672648ef292dff05736b339ab96 (diff)
downloadqemu-60cbfb95522b33c3ec1dd4fa32da261c6c3d6a9d.zip
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
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 2 insertions, 3 deletions
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);
}