From nobody Mon Feb 9 23:40:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=oracle.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533815674839438.0887795314892; Thu, 9 Aug 2018 04:54:34 -0700 (PDT) Received: from localhost ([::1]:50048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnjWT-0001rw-Mj for importer@patchew.org; Thu, 09 Aug 2018 07:54:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnjPP-0004mi-I0 for qemu-devel@nongnu.org; Thu, 09 Aug 2018 07:47:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnjPM-00076q-V7 for qemu-devel@nongnu.org; Thu, 09 Aug 2018 07:47:15 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:47954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnjPM-00076H-Eu for qemu-devel@nongnu.org; Thu, 09 Aug 2018 07:47:12 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w79BiGRS162726; Thu, 9 Aug 2018 11:47:11 GMT Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2kn1ndaxxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Aug 2018 11:47:11 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w79BlBkd020395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Aug 2018 11:47:11 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w79BlBTT004900; Thu, 9 Aug 2018 11:47:11 GMT Received: from liran-pc.ravello.local (/213.57.127.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Aug 2018 04:47:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=CgrRG307gf3wsVvFyD74bA/0k6RUsUDRoZUiXSiMLaw=; b=AL/l7qctDBujKGK1HnsIXf4PiGhZPU0JH2iMx/YUxz8lEy7nqHn/41BT7TEm+Z5xCqhg qGNJboK3eZ4FWkjGoocpa70XNnDtPskNUY0fMlSlv3FMHzxsSRqCDah+MA+ZB2loY5Ql ieNrowgcTJ8HJDNvT5UaEQrKo5C/AfVmEd0MLcMzhmGqckycg8iVWrE2tIWCVDWdKqST /iPHyILhNyH0SdWvF2uuhu7yy0QZo+GSgVXtcdjwg61QEPsMGhExwTMDhQ+gATrKmcMc FylsaOvO9RD3IzzhSIKc0gQg63W5EGVclkUoNkt3vsiLCAsHSGCwhwvepxAoSX7A6EQi GA== From: Liran Alon To: qemu-devel@nongnu.org Date: Thu, 9 Aug 2018 14:46:18 +0300 Message-Id: <1533815202-11967-6-git-send-email-liran.alon@oracle.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1533815202-11967-1-git-send-email-liran.alon@oracle.com> References: <1533815202-11967-1-git-send-email-liran.alon@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8979 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=953 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808090123 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 Subject: [Qemu-devel] [PATCH 05/29] vmsvga: Show registers and commands on debug output as decimals 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: habkost@redhat.com, mtosatti@redhat.com, Liran Alon , kraxel@redhat.com, pbonzini@redhat.com, rth@twiddle.net, Leonid Shatz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Leonid Shatz For better readability of debug output, show these values in decimal notati= on, as they are defined in source by decimal integers. Signed-off-by: Leonid Shatz Reviewed-by: Darren Kenny Signed-off-by: Liran Alon --- hw/display/vmware_vga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index 2e6ac5dfad8a..2fbb9e7f6c9f 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -773,7 +773,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) vmsvga_fifo_read(s); } if (!cmd_ignored) { - printf("%s: Unknown command 0x%02x in SVGA command FIFO\n", + printf("%s: Unknown command %d in SVGA command FIFO\n", __func__, cmd); } break; @@ -964,7 +964,7 @@ static uint32_t vmsvga_value_read(void *opaque, uint32_= t address) ret =3D s->scratch[s->index - SVGA_SCRATCH_BASE]; break; } - printf("%s: Bad register %02x\n", __func__, s->index); + printf("%s: Bad register %d\n", __func__, s->index); ret =3D 0; break; } @@ -1092,7 +1092,7 @@ static void vmsvga_value_write(void *opaque, uint32_t= address, uint32_t value) s->scratch[s->index - SVGA_SCRATCH_BASE] =3D value; break; } - printf("%s: Bad register %02x\n", __func__, s->index); + printf("%s: Bad register %d\n", __func__, s->index); } } =20 --=20 1.9.1