From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE38BC4707E for ; Thu, 14 Apr 2022 14:02:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D319C83EF1; Thu, 14 Apr 2022 16:00:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="m226GhLh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 067DB83ECB; Thu, 14 Apr 2022 16:00:21 +0200 (CEST) Received: from mail-wm1-x34a.google.com (mail-wm1-x34a.google.com [IPv6:2a00:1450:4864:20::34a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC61283ED7 for ; Thu, 14 Apr 2022 16:00:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=36ShYYgYKBrQUmWoffaiiafY.Wigo-Viinfcmnm.XYhr.XY@flex--ascull.bounces.google.com Received: by mail-wm1-x34a.google.com with SMTP id l19-20020a05600c1d1300b0038e736f98faso2484821wms.4 for ; Thu, 14 Apr 2022 07:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=xpwbWN6+cR6uvUPG9ZlD2fQYNKVIWmxezioq+ygHZuk=; b=m226GhLhtJ+0VPwMbwPVs9RB6Ua59X2M+3rpZPLLnYYxvQVsscG8mCNaS6UjNUAN+q bWXVF7Wjuq3V5WmHgRKu/njVsUXbTpGEbucbb+8U+KT5aS5yugxuM7sV5NRf0Bk96mw8 Wq5XSw3/5q6UyW5yRk2TW5XiXMIS15B9dGoHVDWMWQ1+N4FMzPweAtjpH71w3RSXpjY4 3ug3HPMfVO76pOk9NRzD3bYslgYx7LYOnGdmsuYzbWb94BUskLUW/V83IP2QFU3b7ECr 0/IV7MxR2dw5SiB2B+ziRzfHXrX4rAnTUsrUcQhpXiAy4YZAyfLFrNhUr1G/b1ok9Gaq IFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=xpwbWN6+cR6uvUPG9ZlD2fQYNKVIWmxezioq+ygHZuk=; b=Cqq6CMg9h1aCqD8rLdj8xEt7xWcAtz785/NkC/op6GjJNWDFiz05mzDdJWZ+lSxa5v VxVkdnbwKagZnr+QeH5Mrc1HBbC6+TMhbSDLFvEub7s4cfMkYzRWjKejN2RQW8+stPId K/eQV8zmJsieDlFFE6K+HL1rPS9FGBlU0TGV+AujOiPnYrEdklzdhHwsT6LGaG31v6nF h1ApzRmjltkIRprRnt1SQvaDgNASu31TcxW8ASaNamZqpDM2ZNh760R5W+5/tnce10d+ Rqexzb86NJs5e2oFBlB6EJDYD7cIM0M22YH3iM8bM6IdtKfQnCYoN2NF8V3Ehv1cuCZq XAVQ== X-Gm-Message-State: AOAM533Vqf1G8/66Kq6puAzcpRwaMqz2SqX/572cEiISemsUNPVXVtHa wPbkIsAOhfMONbujqI+H+g4w+N161TgMgbHkKmiuDvcfGw4Ge4WtwByM5cEZvLTqe5V+KLTaT6P buj7O5mrkFUj1RoTYvgY40KrDesejRIz1On7wlwe3fAOtPQQ7+GdrI/RkWgk= X-Google-Smtp-Source: ABdhPJxxh51gwK3GBfBa4aVhZhIi0h3w29yGK9Xs7Eef5Tp4GZFznK3mBI4gu+BgHyQcjjm+agtXEeCjoA0= X-Received: from ascull.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1510]) (user=ascull job=sendgmr) by 2002:a7b:cc17:0:b0:38d:af7:3848 with SMTP id f23-20020a7bcc17000000b0038d0af73848mr3428512wmh.41.1649944809819; Thu, 14 Apr 2022 07:00:09 -0700 (PDT) Date: Thu, 14 Apr 2022 13:59:41 +0000 In-Reply-To: <20220414135941.1732585-1-ascull@google.com> Message-Id: <20220414135941.1732585-13-ascull@google.com> Mime-Version: 1.0 References: <20220414135941.1732585-1-ascull@google.com> X-Mailer: git-send-email 2.35.1.1178.g4f1659d476-goog Subject: [PATCH v2 12/12] virtio_ring: Reduce logging noise From: Andrew Scull To: u-boot@lists.denx.de Cc: sjg@chromium.org, xypron.glpk@gmx.de, Andrew Scull Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Demote logs about problems with the vrings to debug level rather than always logging. This reduces noise from the logs, especially in the fuzz test where these cases get reached frequently. Signed-off-by: Andrew Scull --- drivers/virtio/virtio_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 383d574cb0..b369bf1dc2 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -197,13 +197,13 @@ void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len) } if (unlikely(i >= vq->vring.num)) { - printf("(%s.%d): id %u out of range\n", + debug("(%s.%d): id %u out of range\n", vq->vdev->name, vq->index, i); return NULL; } if (unlikely(!vq->vring_desc_shadow[i].chain_head)) { - printf("(%s.%d): id %u is not a head\n", + debug("(%s.%d): id %u is not a head\n", vq->vdev->name, vq->index, i); return NULL; } -- 2.35.1.1178.g4f1659d476-goog