From nobody Sun Feb 8 18:29:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602691171; cv=none; d=zohomail.com; s=zohoarc; b=mlaYxUCrj87wLFMx3iDJvyWrfJYk1gqC7sGyVS4Bv2wyZIDOW2keG5NOmcNAtLVzOkIVnBk8NJRYrO24fwFDF+Sc+ReqY7QlN9XF2G7SV2kc2paK9h4WLeMY9164pMueC0RN3B+DOLKeNe6HIE+jQpRK35XTTSzoZIsG8M/8hbE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602691171; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=r+CY1sHnrvso4O/aGPEZOoKUho8+gm/1sZCae1y4g1c=; b=Y//6+qyK4TzCQwzjqpmhVvIYA40yQHYlVDCele4Lyy3L5ujA9AkV4PHNw64evFmCvc6DvNtbqD7Nv2kB9saeh57u3tuDQQDLcjpvLtEoQENQGTcmWHuA7VCoeNQw4a0aemfhB6YODBku7cDY5oXIMqcpvASyvL7tOT0BBAswB+o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602691171571613.8147844198091; Wed, 14 Oct 2020 08:59:31 -0700 (PDT) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-156-ecM-IYEtNmyqsNka_SXyWQ-1; Wed, 14 Oct 2020 11:59:23 -0400 Received: by mail-wr1-f69.google.com with SMTP id b11so1559436wrm.3 for ; Wed, 14 Oct 2020 08:59:23 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (106.red-83-59-162.dynamicip.rima-tde.net. [83.59.162.106]) by smtp.gmail.com with ESMTPSA id s2sm63940wmf.45.2020.10.14.08.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602691168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r+CY1sHnrvso4O/aGPEZOoKUho8+gm/1sZCae1y4g1c=; b=Wuv3HiCVQ8lzhGoYgWMU/8cLHKWBvty8tCMEpAQ7JRafLoT1ArxorpcdMB/eSL2bhX0bRX 3BiGvBRS05TYwTpyobjmoZDKKyb2x6N3VbCSkUV7mN3uBcyPMJmRQlnw/GS/89Ztgaburr bhsCa88fU5MHumKpMoKGdjBuQvzk+JY= X-MC-Unique: ecM-IYEtNmyqsNka_SXyWQ-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=r+CY1sHnrvso4O/aGPEZOoKUho8+gm/1sZCae1y4g1c=; b=nGxNh72O/j2wldzGsMO1ej7bjDUEqi1L3xk8vGoPTj7xR4Sdhza/wui57G4NaCg70U brnu/QxjsDGcJSqwFqqNP7ZMvMGwlPor9MljrECUeFv8KciPKAqbRLONZ4EiHgRlcYM/ RIcvLyn/rgPQ0jGiCpmrHPHONDXAbUJy1QV34rrlHg3virTwUPdIteOT2Og75V3bJYAp 81LkpVOisuCBgfcLfEJZQ2qMCqY7hEbCNqKwah551A+iHz+L0xwVJiLRWpYFO4aJ9x1b +yx0LV9mxdUMfD/3PmQQdRpN6Y0JHJkkJFIeIpPSAlbWeUruUs+wi7c0vEAM1XZD440f d2kA== X-Gm-Message-State: AOAM530b1359/8WJXPDR5lPMNBmDWZ4TKna4XHLlCGrvZPLiPxRF5n0o glBFj3k1dZ8pzrGDGKKA4ZqWKPdrk9Uf9s1KbZLTmVp7L+ItGUxeQ//6/STBNWrBXvnRFsYhKsU AKkZQz5GT5qYJDw== X-Received: by 2002:a05:600c:2144:: with SMTP id v4mr110677wml.172.1602691162633; Wed, 14 Oct 2020 08:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb8NE/Don2naHAFdAZNdX9CrlkYcoDtTq/mU0sA5Zw2NiSxEvBkUgqL9rDk2GjVE/oltEDAA== X-Received: by 2002:a05:600c:2144:: with SMTP id v4mr110667wml.172.1602691162464; Wed, 14 Oct 2020 08:59:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Fam Zheng , Stefan Hajnoczi , Kevin Wolf , Max Reitz , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 14/15] block/nvme: Report warning with warn_report() Date: Wed, 14 Oct 2020 17:58:09 +0200 Message-Id: <20201014155810.102841-15-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201014155810.102841-1-philmd@redhat.com> References: <20201014155810.102841-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Instead of displaying warning on stderr, use warn_report() which also displays it on the monitor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- block/nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/nvme.c b/block/nvme.c index ea5180d8a27..4d2b7fdf4f4 100644 --- a/block/nvme.c +++ b/block/nvme.c @@ -390,8 +390,8 @@ static bool nvme_process_completion(NVMeQueuePair *q) } cid =3D le16_to_cpu(c->cid); if (cid =3D=3D 0 || cid > NVME_QUEUE_SIZE) { - fprintf(stderr, "Unexpected CID in completion queue: %" PRIu32= "\n", - cid); + warn_report("NVMe: Unexpected CID in completion queue: %"PRIu3= 2", " + "queue size: %u", cid, NVME_QUEUE_SIZE); continue; } trace_nvme_complete_command(s, q->index, cid); --=20 2.26.2