From patchwork Thu Apr 26 16:53:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 905239 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=eu.citrix.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40X38p4RnTz9ryr for ; Fri, 27 Apr 2018 02:55:22 +1000 (AEST) Received: from localhost ([::1]:43511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBkAy-0006mb-LW for incoming@patchwork.ozlabs.org; Thu, 26 Apr 2018 12:55:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBkAC-0006j7-7w for qemu-devel@nongnu.org; Thu, 26 Apr 2018 12:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBkA7-0001Ry-Gy for qemu-devel@nongnu.org; Thu, 26 Apr 2018 12:54:32 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:34804) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBkA7-0001Re-5W for qemu-devel@nongnu.org; Thu, 26 Apr 2018 12:54:27 -0400 X-IronPort-AV: E=Sophos;i="5.49,330,1520899200"; d="scan'208";a="52864856" From: Ian Jackson To: Date: Thu, 26 Apr 2018 17:53:25 +0100 Message-ID: <1524761612-5307-1-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 162.221.156.55 Subject: [Qemu-devel] [RFC PATCH 0/7] Introduce error_[v]report_errno[val] X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson , =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Alistair Francis Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Ian Jackson This is apropos if a suggestion from Philippe. I've compile-tested this but not executed it yet. Let me know what you think. Thanks, Ian. Ian Jackson (7): error reporting: Introduce errnoval parameter to vreport error reporting: Provide error_report_errno (and error_vreport_errno) error reporting: Use error_report_errno in obvious places error reporting: Fix some error messages to use ":" rather than "," error reporting: Provide error_report_errnoval (and error_vreport_errnoval) error reporting: Use error_report_errnoval in obvious places error reporting: HACKING: Say to use error_report_errno HACKING | 1 + audio/wavcapture.c | 2 +- block/nvme.c | 2 +- block/rbd.c | 2 +- block/sheepdog.c | 16 ++++----- cpus.c | 2 +- hw/i386/xen/xen-hvm.c | 2 +- hw/ppc/spapr_hcall.c | 2 +- hw/s390x/s390-stattrib-kvm.c | 6 ++-- hw/s390x/s390-virtio-ccw.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/tpm/tpm_emulator.c | 2 +- hw/xen/xen_pt_load_rom.c | 4 +-- include/qemu/error-report.h | 7 ++++ migration/migration.c | 2 +- migration/postcopy-ram.c | 12 +++---- net/tap-linux.c | 2 +- os-posix.c | 8 ++--- qemu-img.c | 10 +++--- qemu-io-cmds.c | 4 +-- qemu-nbd.c | 10 +++--- scsi/qemu-pr-helper.c | 8 ++--- slirp/misc.c | 4 +-- target/arm/kvm64.c | 4 +-- util/osdep.c | 2 +- util/qemu-error.c | 77 ++++++++++++++++++++++++++++++++++++++++---- vl.c | 6 ++-- 28 files changed, 137 insertions(+), 66 deletions(-)