From patchwork Thu Jan 3 01:31:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 138 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4935E60B32 for ; Thu, 3 Jan 2019 02:30:14 +0100 (CET) Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DBA9F573 for ; Thu, 3 Jan 2019 02:30:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1546479014; bh=fMsj/nBSFi2DFbLtAD/Y9dIHUHne5/wSU3qpkwCgbmw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bokjB5vrU7xL6CIC7pKwaPp7garmA9VcrFYonrIn7Mf/Vn7tw0/oyt+ak8wfbdALC wgNlLL2ZApA7x86jehSxtKV0d85xvTi7A3ljNYTXhhUgycr3Ea3CZJRd7Uf6zCYZ2d vTKG08vWrSb+L4ZIgSk4BAYnTY2EHziWvtJpUhiQ= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 3 Jan 2019 03:31:05 +0200 Message-Id: <20190103013110.6849-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190103013110.6849-1-laurent.pinchart@ideasonboard.com> References: <20190103013110.6849-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/9] libcamera: device_enumerator: Downgrade skipped device errors to warnings X-BeenThere: libcamera-devel@lists.libcamera.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: Thu, 03 Jan 2019 01:30:14 -0000 When a device is skipped by the udev-based enumerator a message is logged. Downgrade its severity to warning as the error isn't fatal. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/device_enumerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp index 7eef450e0c65..bc55a12f2a4e 100644 --- a/src/libcamera/device_enumerator.cpp +++ b/src/libcamera/device_enumerator.cpp @@ -302,8 +302,8 @@ int DeviceEnumeratorUdev::enumerate() dev = udev_device_new_from_syspath(udev_, syspath); if (!dev) { - LOG(Error) << "Failed to get device for '" << - syspath << "', skipping"; + LOG(Warning) << "Failed to get device for '" << + syspath << "', skipping"; continue; }