Trivial patches for 20 to 26 March 2012
The following changes since commit cb1977d308f6e1d6bf398d42e6148187b82456c1:
tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +0000)
are available in the git repository at:
git://github.com/stefanha/qemu.git trivial-patches
for you to fetch changes up to 95b752bc32ccabe48430c0d0062b7c6947d864d0:
trace-events: Fix broken build caused by wrong format specifier (2012-03-26 12:34:20 +0100)
----------------------------------------------------------------
Eduardo Habkost (1):
vl.c: fix '-cpu ?' segfault
Michael Roth (3):
test: remove qemu-ga reference
qapi: remove print statements from test-qmp-commands
test: add test-qmp-commands to make check
Stefan Weil (1):
trace-events: Fix broken build caused by wrong format specifier
Makefile | 1 + test-qmp-commands.c | 3 --- tests/Makefile | 3 ++- trace-events | 2 +- vl.c | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.9.1
PATCH 1/5 vl.c: fix '-cpu ?' segfault
From: Eduardo Habkost <[email protected]>
Fix stupid copy&paste mistake at commit ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept "optarg" on the cpu_list() call.
--- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
vl.c +1 -1
@@ -3196,7 +3196,7 @@ int main(int argc, char **argv, char **envp)cpudef_init ();if (cpu_model && *cpu_model =='?' ) { -list_cpus (stdout, &fprintf, optarg); +list_cpus (stdout, &fprintf, cpu_model);exit (0 ); }
Signature · 1 line
1.7.9.1
PATCH 2/5 test: remove qemu-ga reference
In reply to Stefan HajnocziFrom: Michael Roth <[email protected]>
This was added by mistake a while back.
--- Makefile | 1 + tests/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
Makefile +1 -0
@@ -173,6 +173,7 @@ qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx $(qapi-obj-y): $(GENERATED_HEADERS) qapi-dir := $(BUILD_DIR)/qapi-generated qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) +qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) gen-out-type = $(subst .,-,$(suffix $@))
tests/Makefile +1 -1
@@ -17,7 +17,7 @@ test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) test-qmp-input-visitor.o test-qmp-output-visitor.o \ test-string-input-visitor.o test-string-output-visitor.o \ - test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) + test-qmp-commands.o: QEMU_CFLAGS += -I $(qapi-dir) $(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\ $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
Signature · 1 line
1.7.9.1
PATCH 3/5 qapi: remove print statements from test-qmp-commands
In reply to Stefan HajnocziFrom: Michael Roth <[email protected]>
This is necessary for nicer make check integration.
--- test-qmp-commands.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
test-qmp-commands.c +0 -3
@@ -46,7 +46,6 @@ static void test_dispatch_cmd(void) resp =qmp_dispatch (QOBJECT (req));assert (resp !=NULL );assert (!qdict_haskey (qobject_to_qdict (resp),"error" )); -g_print ("\nresp: %s\n" ,qstring_get_str (qobject_to_json (resp)));qobject_decref (resp);QDECREF (req);
@@ -63,7 +62,6 @@ static void test_dispatch_cmd_error(void) resp =qmp_dispatch (QOBJECT (req));assert (resp !=NULL );assert (qdict_haskey (qobject_to_qdict (resp),"error" )); -g_print ("\nresp: %s\n" ,qstring_get_str (qobject_to_json_pretty (resp)));qobject_decref (resp);QDECREF (req);
@@ -92,7 +90,6 @@ static void test_dispatch_cmd_io(void) resp =qmp_dispatch (QOBJECT (req));assert (resp !=NULL );assert (!qdict_haskey (qobject_to_qdict (resp),"error" )); -g_print ("\nresp: %s\n" ,qstring_get_str (qobject_to_json_pretty (resp)));qobject_decref (resp);QDECREF (req);
Signature · 1 line
1.7.9.1
PATCH 4/5 test: add test-qmp-commands to make check
In reply to Stefan HajnocziFrom: Michael Roth <[email protected]>
All the deps are here but the test was never added to the list of tests for make check
--- tests/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tests/Makefile +1 -0
@@ -3,6 +3,7 @@ export SRC_PATH CHECKS = check-qdict check-qfloat check-qint check-qstring check-qlist CHECKS += check-qjson test-qmp-output-visitor test-qmp-input-visitor CHECKS += test-string-input-visitor test-string-output-visitor test-coroutine +CHECKS += test-qmp-commands CHECKS += $(SRC_PATH)/tests/qemu-iotests-quick.sh check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS)
Signature · 1 line
1.7.9.1
PATCH 5/5 trace-events: Fix broken build caused by wrong format specifier
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
mem is an uint64_t value, so %lx was wrong.
--- trace-events | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
trace-events +1 -1
@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p" # hw/qxl.c disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d" disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u" -qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d" +qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u" qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d" qxl_destroy_primary(int qid) "%d" qxl_enter_vga_mode(int qid) "%d"
Signature · 1 line
1.7.9.1
Re: [Qemu-devel] [PATCH 5/5] trace-events: Fix broken build caused by wrong format specifier
Am 26.03.2012 14:07, schrieb Stefan Hajnoczi:
Quoted 5 lines
From: Stefan Weil <[email protected]>
mem is an
uint64_tvalue, so %lx was wrong.Signed-off-by Stefan Weil <[email protected]>
Alon, you replied with an "ACK". Should an Acked-by be inserted here?
Andreas
Quoted 18 lines
Signed-off-by Stefan Hajnoczi <[email protected]>--- trace-events | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)trace-events +1
-1@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p" # hw/qxl.c disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d" disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u" -qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d" +qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u" qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d" qxl_destroy_primary(int qid) "%d" qxl_enter_vga_mode(int qid) "%d"
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Re: [Qemu-devel] [PATCH 5/5] trace-events: Fix broken build caused by wrong format specifier
Quoted 8 lines · Andreas Färber
Am 26.03.2012 14:07, schrieb Stefan Hajnoczi:
Quoted 5 lines
From: Stefan Weil <[email protected]>
mem is an
uint64_tvalue, so %lx was wrong.Signed-off-by Stefan Weil <[email protected]>Alon, you replied with an "ACK". Should an Acked-by be inserted here?
Yes, should have been verbose, sorry. But I don't think it matters much for this kind of small patch.
Quoted 25 lines
Andreas
Quoted 18 lines
Signed-off-by Stefan Hajnoczi <[email protected]>--- trace-events | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)trace-events +1
-1@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p" # hw/qxl.c disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d" disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u" -qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d" +qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u" qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d" qxl_destroy_primary(int qid) "%d" qxl_enter_vga_mode(int qid) "%d"Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 11 lines · Stefan Hajnoczi
The following changes since commit
cb1977d308f6e1d6bf398d42e6148187b82456c1:tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +0000)are available in the git repository at:
git://github.com/stefanha/qemu.gittrivial-patchesfor you to fetch changes up to
95b752bc32ccabe48430c0d0062b7c6947d864d0:trace-events: Fix broken build caused by wrong format specifier (2012-03-26 12:34:20 +0100)
Pulled. Thanks.
Regards,
Anthony Liguori
Quoted 20 lines
----------------------------------------------------------------
Eduardo Habkost (1):
vl.c: fix '-cpu ?' segfaultMichael Roth (3):
test: remove qemu-ga reference
qapi: remove print statements from test-qmp-commands
test: add test-qmp-commands to make checkStefan Weil (1):
trace-events: Fix broken build caused by wrong format specifierMakefile | 1 + test-qmp-commands.c | 3 --- tests/Makefile | 3 ++- trace-events | 2 +- vl.c | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-)