summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2014-09-15 20:44:34 +0200
committerPeter Maydell2014-09-15 20:44:34 +0200
commitcc35a44cf7b522b1fd0b786562b7de4b881c41b0 (patch)
treeab9751a4ceac9c6ad57e748a8ab5407c5cbf75aa
parentMerge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff)
parentexec: file_ram_alloc(): print error when prealloc fails (diff)
downloadqemu-cc35a44cf7b522b1fd0b786562b7de4b881c41b0.tar.gz
qemu-cc35a44cf7b522b1fd0b786562b7de4b881c41b0.tar.xz
qemu-cc35a44cf7b522b1fd0b786562b7de4b881c41b0.zip
Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging
* remotes/qmp-unstable/queue/qmp: exec: file_ram_alloc(): print error when prealloc fails monitor: fix debug print compiling error Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--exec.c1
-rw-r--r--monitor.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index 5aa84d4ae3..2b2465117e 100644
--- a/exec.c
+++ b/exec.c
@@ -1164,6 +1164,7 @@ static void *file_ram_alloc(RAMBlock *block,
error:
if (mem_prealloc) {
+ error_report("%s\n", error_get_pretty(*errp));
exit(1);
}
return NULL;
diff --git a/monitor.c b/monitor.c
index 34cee74eb3..667efb7a64 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4747,8 +4747,11 @@ static void monitor_find_completion(void *opaque,
return;
}
#ifdef DEBUG_COMPLETION
- for (i = 0; i < nb_args; i++) {
- monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+ {
+ int i;
+ for (i = 0; i < nb_args; i++) {
+ monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+ }
}
#endif