From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX65x-0000N4-U2 for qemu-devel@nongnu.org; Fri, 18 Oct 2013 05:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX65o-0007D4-2D for qemu-devel@nongnu.org; Fri, 18 Oct 2013 05:11:45 -0400 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:37053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX65n-0007CV-Ci for qemu-devel@nongnu.org; Fri, 18 Oct 2013 05:11:35 -0400 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Oct 2013 14:41:30 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id A97743940058 for ; Fri, 18 Oct 2013 14:41:07 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r9I9EBih45154554 for ; Fri, 18 Oct 2013 14:44:12 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r9I9BQSQ008699 for ; Fri, 18 Oct 2013 14:41:26 +0530 From: Wenchao Xia Date: Fri, 18 Oct 2013 09:11:08 +0800 Message-Id: <1382058681-14957-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 00/13] trivial patches for event, error and monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@gmail.com, lcapitulino@redhat.com, pbonzini@redhat.com, Wenchao Xia I was trying to decouple components between block and qemu code, and reduce stub files. I found fixing some small code problem found could help, so pick up those which can benifit upstream code either and send them as separate series. patch 1 to 4 comes from my RFC series earlier with title: Remove stub mon-protocol-event for block Wenchao Xia (13): 1 block: use type MonitorEvent directly 2 block: do not include monitor.h in block.c 3 qapi: move MonitorEvent define 4 qapi: rename MonitorEvent to QEvent 5 error: define struct Error in only one place 6 error: remove error_printf_unless_qmp() 7 error: make error_print_loc() static 8 error: don't set sep when print progname 9 error: print progname with error_vprintf() 10 qerror: deref once in qerror_report() 11 qerror: folder qerror emit logic 12 monitor: hide *cur_mon in monitor_get_fd() 13 stubs: do not call monitor_printf() block.c | 3 +- dump.c | 2 +- hw/usb/bus.c | 2 +- hw/usb/hcd-ehci.c | 4 +- include/block/block_int.h | 2 +- include/monitor/monitor.h | 42 ++------------------------- include/qapi/error.h | 5 ++- include/qapi/qmp/qevent.h | 66 +++++++++++++++++++++++++++++++++++++++++++ include/qapi/qmp/types.h | 1 + include/qemu/error-report.h | 2 - migration-fd.c | 2 +- monitor.c | 19 ++++++++---- qmp.c | 2 +- qobject/qerror.c | 36 ++++++++++------------- stubs/get-fd.c | 2 +- stubs/mon-protocol-event.c | 2 +- stubs/pci-drive-hot-add.c | 1 - ui/vnc.c | 2 +- util/error.c | 6 ---- util/qemu-error.c | 27 ++++++++---------- util/qemu-sockets.c | 4 +- 21 files changed, 127 insertions(+), 105 deletions(-) create mode 100644 include/qapi/qmp/qevent.h