Skip to content

error: Misc cleanups and improvements

Cole Robinson qemu-devel 2 versions – Applied

Status from this message: Applied to the qmp-next branch, very nice cleanup!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 2 repliesApplied
  2. v16 patches 17 repliesSuperseded

Changes in v2 from the cover letter

Dropped the error_printf_unless_qmp patch Added the last 4 patches, new cleanups
Use error_report instead of fprintf in patch 1 and 2

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9slirp: Remove default_mon usageslirp/misc.c slirp/slirp.c slirp/slirp.h+6 -170 replies
2/9vnc: Remove default_mon usageui/vnc.c+2 -20 replies
3/9error: Privatize error_print_locinclude/qemu/error-report.h util/qemu-error.c+1 -20 replies
4/9monitor: Remove unused monitor_print_filenameinclude/monitor/monitor.h monitor.c stubs/Makefile.objs +1 more+0 -350 replies
5/9error: Print error_report() to stderr if using qmputil/qemu-error.c+1 -10 replies
6/9qerror.h: Remove unused error classesinclude/qapi/qmp/qerror.h+0 -90 replies
7/9qerror.h: Remove QERR defines that are only used onceblock/commit.c blockdev.c hw/9pfs/virtio-9p.c +12 more+37 -910 replies
8/9qerror.h: Replace QERR_NOT_SUPPORTED with QERR_UNSUPPORTEDblockjob.c include/qapi/qmp/qerror.h stubs/arch-query-cpu-def.c+2 -50 replies
9/9error: Remove some unused headersinclude/qapi/qmp/qerror.h util/error.c+1 -50 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaolo Bonzini
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/9] error: Misc cleanups and improvements

Minor error API cleanups, and one error reporting improvement when connected to qmp (patch #5)

v2:
Dropped the error_printf_unless_qmp patch Added the last 4 patches, new cleanups
Use error_report instead of fprintf in patch 1 and 2

Cc Luiz Capitulino <[email protected]>
Cc Markus Armbruster <[email protected]>

Cole Robinson (9):
slirp: Remove default_mon usage
vnc: Remove default_mon usage
error: Privatize error_print_loc
monitor: Remove unused monitor_print_filename
error: Print error_report() to stderr if using qmp qerror.h: Remove unused error classes
qerror.h: Remove QERR defines that are only used once qerror.h: Replace QERR_NOT_SUPPORTED with QERR_UNSUPPORTED
error: Remove some unused headers

 block/commit.c              |  2 +-
 blockdev.c                  |  9 ++++--
 blockjob.c                  |  2 +-
 hw/9pfs/virtio-9p.c         |  5 +--
 hw/core/qdev-properties.c   |  9 +++---
 hw/misc/ivshmem.c           |  4 +--
 include/monitor/monitor.h   |  1 -
 include/qapi/qmp/qerror.h   | 79 ---------------------------------------------
 include/qemu/error-report.h |  1 -
 monitor.c                   | 27 ----------------
 qapi/qmp-dispatch.c         |  3 +-
 qapi/qmp-input-visitor.c    |  2 +-
 qdev-monitor.c              | 12 ++++---
 qmp.c                       |  2 +-
 qobject/json-parser.c       |  2 +-
 qom/object.c                |  5 +--
 savevm.c                    |  3 +-
 slirp/misc.c                | 13 ++------
 slirp/slirp.c               |  8 ++---
 slirp/slirp.h               |  2 --
 stubs/Makefile.objs         |  1 -
 stubs/arch-query-cpu-def.c  |  2 +-
 stubs/mon-print-filename.c  |  6 ----
 ui/vnc.c                    |  4 +--
 util/error.c                |  5 +--
 util/qemu-config.c          |  2 +-
 util/qemu-error.c           |  4 +--
 util/qemu-option.c          |  2 +-
 28 files changed, 50 insertions(+), 167 deletions(-)
 delete mode 100644 stubs/mon-print-filename.c
Signature · 1 line
1.8.5.3