On 21/11/25 13:14, Markus Armbruster wrote:
Replace

     error_setg_errno(errp, errno, MSG, FNAME);

by

     error_setg_file_open(errp, errno, FNAME);

where MSG is "Could not open '%s'" or similar.

Also replace equivalent uses of error_setg().

A few messages lose prefixes ("net dump: ", "SEV: ", __func__ ": ").
We could put them back with error_prepend().  Not worth the bother.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
---
  hw/9pfs/9p-local.c        | 2 +-
  hw/acpi/core.c            | 2 +-
  hw/core/loader.c          | 2 +-
  hw/pci-host/xen_igd_pt.c  | 2 +-
  monitor/hmp-cmds-target.c | 2 +-
  net/dump.c                | 2 +-
  net/tap-bsd.c             | 6 +++---
  net/tap-linux.c           | 2 +-
  target/i386/sev.c         | 6 ++----
  util/vfio-helpers.c       | 5 ++---
  10 files changed, 14 insertions(+), 17 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to