From nobody Mon Feb 9 17:22:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@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 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1607701693; cv=none; d=zohomail.com; s=zohoarc; b=h3dTCqNhcTDdwWF134BK99BxpWBJBQjm6uH4TKgk3pYR6Uy05BDrEvRBqguqfRpH7llt4OoTgBQMTK33aiIsNeCjpObrW2Sn7U5wofS26R2xyG/44RawKlK7YWfsFTc1fdw51WmqaYktr60Xqufq4f5BeZwbmIDJMZtWNfInCG4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607701693; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=5AhflgcYQu+9DEDf6zs09rHMAGztyaqr6nmsj/zWToM=; b=DIlNjnGuLVVKewMD6glM2O+c0c8H9o6aPmGETcNC6xBK2WNM9BwyRzFjLBhfDjkig+1zrtNy8aeGetHSQXQw1buPMUrkVlsn2gU9rTIXV/j6ydjstDzPQYBlkobDqT7DV45YZA7giafSNY18hNe5cxnXZeq8V+xIQv6ml1rKQvY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1607701693701275.798854824773; Fri, 11 Dec 2020 07:48:13 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-FOBK2Kj4N-iTIf1c2p7_gQ-1; Fri, 11 Dec 2020 10:48:10 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 94341802B67; Fri, 11 Dec 2020 15:48:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6D0EF5FC1D; Fri, 11 Dec 2020 15:48:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 38E154EE0B; Fri, 11 Dec 2020 15:48:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0BBFlWQj013808 for ; Fri, 11 Dec 2020 10:47:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5CD2B60C04; Fri, 11 Dec 2020 15:47:32 +0000 (UTC) Received: from vhost2.laine.org (ovpn-113-158.phx2.redhat.com [10.3.113.158]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26B8860BF1 for ; Fri, 11 Dec 2020 15:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607701692; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5AhflgcYQu+9DEDf6zs09rHMAGztyaqr6nmsj/zWToM=; b=PT/NjDIsSlqWVoqoNrjnACfjNVvnQjD7P29ccIMt8GTbuFlo1PAJf6+HXdCKD2mwV/+euy X+7lPAQmb6dMXRN9RLIHH0B8JN6Rs0hyuempsMWwUqXWgvNVtOBEGx58fQ6Nx9hlQAP25Y Es5qMDwLO1Wc3VW1vTLliGCOBZVl4zM= X-MC-Unique: FOBK2Kj4N-iTIf1c2p7_gQ-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH v2 4/7] util: make read error of PCI config file more detailed Date: Fri, 11 Dec 2020 10:47:25 -0500 Message-Id: <20201211154728.1117948-5-laine@redhat.com> In-Reply-To: <20201211154728.1117948-1-laine@redhat.com> References: <20201211154728.1117948-1-laine@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The new message is more verbose/useful, but only logged at debug level instead of as a warning (since it could easily happen in a non-error situation). Signed-off-by: Laine Stump --- src/util/virpci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index 31622cddfa..9109fb4f3a 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -332,8 +332,8 @@ virPCIDeviceRead(virPCIDevicePtr dev, =20 if (lseek(cfgfd, pos, SEEK_SET) !=3D pos || saferead(cfgfd, buf, buflen) !=3D buflen) { - VIR_WARN("Failed to read from '%s' : %s", dev->path, - g_strerror(errno)); + VIR_DEBUG("Failed to read %u bytes at %u from '%s' : %s", + buflen, pos, dev->path, g_strerror(errno)); return -1; } return 0; --=20 2.28.0