From nobody Mon May 6 07:17:55 2024 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 Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1517284798315163.90673102896938; Mon, 29 Jan 2018 19:59:58 -0800 (PST) Received: from localhost ([::1]:35406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egN5M-0001TD-LA for importer@patchew.org; Mon, 29 Jan 2018 22:59:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egN4B-0000sG-CG for qemu-devel@nongnu.org; Mon, 29 Jan 2018 22:58:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egN48-00055s-AA for qemu-devel@nongnu.org; Mon, 29 Jan 2018 22:58:39 -0500 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]:45424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egN48-00054z-53 for qemu-devel@nongnu.org; Mon, 29 Jan 2018 22:58:36 -0500 Received: by mail-io0-x243.google.com with SMTP id p188so9913705ioe.12 for ; Mon, 29 Jan 2018 19:58:35 -0800 (PST) Received: from localhost.localdomain (d14-69-20-184.try.wideopenwest.com. [69.14.184.20]) by smtp.gmail.com with ESMTPSA id i129sm6886362iti.35.2018.01.29.19.58.34 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 29 Jan 2018 19:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UfcK+mH33jhCgpcMHpnmwlPLQdw5UGzpolpWICe9rbs=; b=a/ThKyTDBYv/9lj2BWRAXDGBNDSwWOsDs4RKCiLjIMgoaVQoe5WuOZVFOGC6qJIqUa SV9vbCxXznYSP+82zsQM0FkROEZJAjFhb/62dHJcAFOQChuvb7/h0o/4Lmng4tvXXpPC i1hJyejlPJk+mKhiuutQDLldKqwufR/tI+vPNOGbF+nNeLDckdu5QeLmOKNoeB7XvDCi q8K/Hy7mfvpngB4EsDnFxcuw1cxxqQmyhS+WNK5UqyWy/zrhyjAHGpZb1zme0VgECQty 3VG+411peeiQU5ZhlNfAg3M+xM1w8YsLNcFdfF8qGmNJ6dObqoHgR7e1cXb24H8KUDys Z4sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UfcK+mH33jhCgpcMHpnmwlPLQdw5UGzpolpWICe9rbs=; b=bd5fbIyjgGFq21pI5mJ0Qgnq2K/3kjduyMNQwEgCEejH/tF3RuWAj1aSxNHaNUAx4S v7h5aehpyTkHLI6e2CfipdW7dCU8rY/jx95NoIhscg33fmgUJnbuci/UwwVHMe+9zRcR t6S6JDMi2l9HcDf5oeipHJkUxjij/cQUN/1TWo/upiyvHq8Fn8BUgyaIGnFApBtcji7c 8FU6LY9WcuWrKV29DtuOySBr3z+YL+dYeM56OB3yO6xCIg5Em5jQV8Y/j/haS7w7BR2P 8T7U/7qRbaNAbkniqSlaUB/GVwehYyMGE2dZIjPjtjIM43h/TnkncVETLeWJmO4MC28v hn8w== X-Gm-Message-State: AKwxytdilHuaOTXxniqD2oFsjidVQbINkoCNnuMPu86pX6nDe79/2DYf 9APpDV2g7FL2JWqtpWCzrD/KAg== X-Google-Smtp-Source: AH8x226OuDPfarWDFiRWoGRwF7sBgmzatRSmv1SiP4XwcupGqIJzop9jDMJbmJ1Q3UB9GK1vLzjrCA== X-Received: by 10.107.10.32 with SMTP id u32mr28950920ioi.232.1517284715123; Mon, 29 Jan 2018 19:58:35 -0800 (PST) From: John Arbuckle To: qemu-devel@nongnu.org Date: Mon, 29 Jan 2018 22:58:27 -0500 Message-Id: <20180130035827.2360-1-programmingkidx@gmail.com> X-Mailer: git-send-email 2.14.3 (Apple Git-98) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::243 Subject: [Qemu-devel] [PATCH] Only print unknown command message in debug mode 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: John Arbuckle Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" After using QEMU with the sb16 sound card I would see all these messages ab= out some numbered command not being understood. It became annoying after a = while to always see this message, so this patch changes things so that the = message is only printed when DEBUG is defined.=20 Signed-off-by: John Arbuckle --- hw/audio/sb16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c index 6ab2f6f89a..45b679c4df 100644 --- a/hw/audio/sb16.c +++ b/hw/audio/sb16.c @@ -632,7 +632,7 @@ static void command (SB16State *s, uint8_t cmd) return; =20 warn: - dolog ("warning: command %#x,%d is not truly understood yet\n", + ldebug("warning: command %#x,%d is not truly understood yet\n", cmd, s->needed_bytes); goto exit; =20 --=20 2.14.3 (Apple Git-98)