Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kZDTm-0001EQ-Km for mharc-qemu-trivial@gnu.org; Sun, 01 Nov 2020 08:33:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZDTl-0001E5-3Z for qemu-trivial@nongnu.org; Sun, 01 Nov 2020 08:33:05 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:43154) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZDTi-0001a5-NT for qemu-trivial@nongnu.org; Sun, 01 Nov 2020 08:33:04 -0500 Received: by mail-wr1-x442.google.com with SMTP id g12so11461417wrp.10 for ; Sun, 01 Nov 2020 05:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e5F37KHKrsAJyEq6bg6gcyfjKzhVjIjvXr9kk8KAAlM=; b=B7xB4TzLdAv9C78E97WURZNvaTfeqKIIP7ENQ1vkcmJDha0uTmxOcof0J8udYYq8oL yRRgOCIx2ut2plK6exAPpOKK65C5WXYsEEkVsEgxMZ3rRK3B9UQ41dc7OK1/58+2GWuQ KVryIOLVE6VGFhFT4CVlu+cn+wALiUxuKamIKRreperSlAYAO4qc4Y4YgI0Z+4VmfzMK bkd3oklTfgjsgNAJzDSCeZNI4Bb5SQVeR9dvBVQBDNJ44Ik389JyP4PQHT02BIjhTam7 YJU9o2XXEfOKEyzPJHqIMzN9k9PikJlnqiO6apCRjYG5j2ikvF3b5ZBQ0In6ziuh8Ufk dtVQ== 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:mime-version :content-transfer-encoding; bh=e5F37KHKrsAJyEq6bg6gcyfjKzhVjIjvXr9kk8KAAlM=; b=uLKWNNyotr09IxTT1JnTJSylAFbFJaKkEjZNpSQOjHShgBSjYIOGAFqqDQ2eXiD6Pw 2tyfqZVuA/oWcw46Ul7dbDUQD0wSTxdVk7csDTgV2BThT2MDMowj6URRP8wvTXdvmPTq agWqW32tcFnst1bGPnByRA+NldVEC+nTfOq1btTJJjeUNCY4S16AKkahDGCWngOFAVKp nhrW94aAgpLRcr5u9hVWeKc4miKci6DSww5ds8mLQoCbRoSYUfZ11bdBO13tSv5cU+Ss BTn+FmwpJ079+daQZMWNIqa0FHQbCyJeXcJNxWjh7q1puz6ENYpAjwSriUzmuCWai20x VNmA== X-Gm-Message-State: AOAM533ZwrBmThv6QRJ5rfGOpx2rAs2MBazx08CgSqgWMqMN0LpZxChK ZVzyRDefpGeNVide2WLH9SO5lQ== X-Google-Smtp-Source: ABdhPJxjXNFIH1bl0ejx4jGLsgxVIiby4M+y68qYrJ48Kv6SB5KtWmPetujDtJ8IeFt1+hpxW2NIhw== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr14770107wrk.142.1604237580871; Sun, 01 Nov 2020 05:33:00 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id u3sm21919673wme.0.2020.11.01.05.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 05:33:00 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Subject: [PATCH] hw/input/ps2.c: Remove remnants of printf debug Date: Sun, 1 Nov 2020 13:32:58 +0000 Message-Id: <20201101133258.4240-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2020 13:33:05 -0000 In commit 5edab03d4040 we added tracepoints to the ps2 keyboard and mouse emulation. However we didn't remove all the debug-by-printf support. In fact there is only one printf() remaining, and it is redundant with the trace_ps2_write_mouse() event next to it. Remove the printf() and the now-unused DEBUG* macros. Signed-off-by: Peter Maydell --- hw/input/ps2.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index f8746d2f52c..72cdb80ae1c 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -33,12 +33,6 @@ #include "trace.h" -/* debug PC keyboard */ -//#define DEBUG_KBD - -/* debug PC keyboard : only mouse */ -//#define DEBUG_MOUSE - /* Keyboard Commands */ #define KBD_CMD_SET_LEDS 0xED /* Set keyboard leds */ #define KBD_CMD_ECHO 0xEE @@ -790,9 +784,6 @@ void ps2_write_mouse(void *opaque, int val) PS2MouseState *s = (PS2MouseState *)opaque; trace_ps2_write_mouse(opaque, val); -#ifdef DEBUG_MOUSE - printf("kbd: write mouse 0x%02x\n", val); -#endif switch(s->common.write_cmd) { default: case -1: -- 2.20.1