From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPoA9-0000GC-DA for qemu-devel@nongnu.org; Mon, 23 Feb 2015 03:14:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPoA3-0000Np-Tc for qemu-devel@nongnu.org; Mon, 23 Feb 2015 03:14:45 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:35597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPoA3-0000Mv-4W for qemu-devel@nongnu.org; Mon, 23 Feb 2015 03:14:39 -0500 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Feb 2015 18:14:35 +1000 Received: from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id DE3D62CE8050 for ; Mon, 23 Feb 2015 19:14:32 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1N8EOHK45154520 for ; Mon, 23 Feb 2015 19:14:32 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1N8DxEX013726 for ; Mon, 23 Feb 2015 19:13:59 +1100 From: Alexey Kardashevskiy Date: Mon, 23 Feb 2015 19:13:34 +1100 Message-Id: <1424679214-8377-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] vfio: Add ioctl number to error report List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Alex Williamson This makes the error report more informative. Signed-off-by: Alexey Kardashevskiy --- hw/vfio/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index cebd3b0..d6d97d1 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -931,8 +931,8 @@ static int vfio_container_do_ioctl(AddressSpace *as, } else { ret = ioctl(container->fd, req, param); if (ret < 0) { - error_report("vfio: failed to ioctl container: ret=%d, %s", - ret, strerror(errno)); + error_report("vfio: failed to ioctl %d to container: ret=%d, %s", + _IOC_NR(req) - VFIO_BASE, ret, strerror(errno)); } } -- 2.0.0