From nobody Mon Feb 9 10:27:30 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=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 63.128.21.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=1607477946; cv=none; d=zohomail.com; s=zohoarc; b=MFR2CRGobgMgHvaDwu98AkSwyKWbTVvxuE6wCNaF2G5to5/5FSaNORGgdCHJbqrGnnHggI2lcbeoas/XDGabnfRmF/otRsTUZdWx5SPvu1ksqhXx4atf8gZZeqVkd0xDZ8kZQ/oMROwr40L3fIoMA66RStUnOlflPcDrXzAGBe0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607477946; 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=DCx1U4BIxn+AvNB2TArOw5/Mhv2k0oEPLoGo3xBeil1pX9Sc0KVhA2CdMA/SF0Ig7jMgtGXV/i+IOY0xJLzra7YxqvwYXQbQLrtq4MnQw6uEpy8+4GVK4DeRuxyGKn3h9MXzLcM6pSAZ2/+dEkUaBblM5112sXkQoILs7Nkd5Ts= 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=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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 160747794656097.08443722754714; Tue, 8 Dec 2020 17:39:06 -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-207-dXcaqaaRMKOPQ-UvZysiww-1; Tue, 08 Dec 2020 20:38:24 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D8A2918C89DD; Wed, 9 Dec 2020 01:38:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B3DB75D6D5; Wed, 9 Dec 2020 01:38:14 +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 8173F1809CA4; Wed, 9 Dec 2020 01:38:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0B91bqa7007406 for ; Tue, 8 Dec 2020 20:37:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id 62E1A5D6D5; Wed, 9 Dec 2020 01:37:52 +0000 (UTC) Received: from vhost2.laine.org (ovpn-112-50.phx2.redhat.com [10.3.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2AFFB5D6AB for ; Wed, 9 Dec 2020 01:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607477945; 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=dtIdOIXrBFs1btFSOTBAoOTaVhG9Blsip5KNexuzCyhLThTl+LgYlY/JtCa4OAWpfhRHD6 4kagojB7XZsYhL2znUU8BfA5prrknHMfy7V/HWspKizjpEQwGMh9eBB+0hJ2aBjXjt58zB 2b+AAaPaMei5yylbqY10DH91uq/Mmto= X-MC-Unique: dXcaqaaRMKOPQ-UvZysiww-1 From: Laine Stump To: libvir-list@redhat.com Subject: [PATCH 4/7] util: make read error of PCI config file more detailed Date: Tue, 8 Dec 2020 20:37:42 -0500 Message-Id: <20201209013745.599662-5-laine@redhat.com> In-Reply-To: <20201209013745.599662-1-laine@redhat.com> References: <20201209013745.599662-1-laine@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.15 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