Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1228603ybc; Tue, 12 Nov 2019 16:57:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxLndA/kH4eZiTZGZ8+viS87VKQBd8QJPhgjkXusWtA1u6LMN00PG7Id4m/H6YcLAZfhn3d X-Received: by 2002:a17:906:7f8a:: with SMTP id f10mr195971ejr.209.1573606661349; Tue, 12 Nov 2019 16:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573606661; cv=none; d=google.com; s=arc-20160816; b=ptxEFQ0EKQ4wIe7qc9T68qHzY8+U9F9ddkXmhTKRcragKIJENm9LAey/N4H6r/WnfW /mo1s02KXvWI3Bk3Aj1IeVPHY9QnCXd8TIAyTrJ+pexYHQrP6Q/dNH6ZO+VglhscX/vz mUARbFqjh7gw6rj6N2o9p+lolk7vqAjh5ZjoiaSkADFfOagbN4vM4+F1y8fGzMo1ia8F 45crqsd1uDozfRJUqhJMSEfD+Fxn5RzUGawaEHHodDPfCkbx+mH7iIgrY3SX8XKx/YqJ iYDUtq6ULEHJEndg3+lohSnixYWAWYZdCkWsAHks8CPwg9mIMaMTcqY9jU5WHOwv5RdX 5Ziw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6OWH0qPWGOTHEJKjK2/6xrgg3xEKCtmqVG+m05FgjZI=; b=Gfvedqe47gCftk9sscW+JWiJ+16lsoXUUxzzeGfk2m1vk+MdVn/CUYkB8aSOPwLiE2 pNuiPJHj4ShA3zNo9mZbkeiWzvBXprWetedLhJZdYtOrCPJwK1oxHQnngXlRvMfB4eSq pycbEqKC2X399hJRZKLwo4GyRT7oejEIul3WsfAR1RnA8MljyYEZGsDH3mlKVakPDaTa 4aa/miMM+xBjvlO/97Kx9FwKa3FfTyl2CKYbyKDHItEXEJDAAeMn+FiwwU1obf0PEqK6 A/p+WDQ4Aly42eux6cfvLpcxDDIP82uZIjSF7ZkOLFZIjAh7KUSSfS774evqviuKEJGm mmHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jp14si140391ejb.313.2019.11.12.16.57.15; Tue, 12 Nov 2019 16:57:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbfKMA4c (ORCPT + 99 others); Tue, 12 Nov 2019 19:56:32 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44151 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfKMA4c (ORCPT ); Tue, 12 Nov 2019 19:56:32 -0500 Received: by mail-pf1-f194.google.com with SMTP id q26so336433pfn.11 for ; Tue, 12 Nov 2019 16:56:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6OWH0qPWGOTHEJKjK2/6xrgg3xEKCtmqVG+m05FgjZI=; b=bl4ruUjpBpx3FNxjMoLyjjYavR5p3EM8qLFVFyslAqjxxLRZiBs2LaoQKiQHaNGj7S Gf5d2Ta3IJ8z0B82WOeDd64ZkKQbcm8YlNelNfLV+NEMBorC3UFzs2FwAqVCoGnWJPud U8YL/fH3m1ZwR3lQsM2/stPTUppWdR43oRkOItfjL7WwSmfRwPr2W5G/tPX1zOm0b/py zK6p1OAWEaNJRjSu30o2phcYyIKGuUrFoDI8loF+dqKP2TMpRws+2WV8WBw0b3DiEync eNBNKa+mxBnZGgUyTke6+Mt7vd1Wme/TRDZ/pgdbrs1b3TaWgsA8fmip9aq+dImGbgx0 u72g== X-Gm-Message-State: APjAAAVQZr+aJh+Q8njxqcRwRiWs8HWS7H1ADiysaZFox5lFFaMobg7d 2tjfZqogrGf62+d4rhcGVwU= X-Received: by 2002:aa7:8210:: with SMTP id k16mr998280pfi.84.1573606590187; Tue, 12 Nov 2019 16:56:30 -0800 (PST) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id f33sm203525pgl.33.2019.11.12.16.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 16:56:29 -0800 (PST) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 733CF403DC; Wed, 13 Nov 2019 00:56:28 +0000 (UTC) Date: Wed, 13 Nov 2019 00:56:28 +0000 From: Luis Chamberlain To: Drew DeVault Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , ~sircmpwn/public-inbox@lists.sr.ht, robbat2@gentoo.org Subject: Re: [PATCH v2] firmware loader: log path to loaded firmwares Message-ID: <20191113005628.GT11244@42.do-not-panic.com> References: <20191103180646.34880-1-sir@cmpwn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191103180646.34880-1-sir@cmpwn.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 03, 2019 at 01:06:46PM -0500, Drew DeVault wrote: > > This is useful for users who are trying to identify the firmwares in use > on their system. > > Signed-off-by: Drew DeVault > --- > v2 uses dev_dbg instead of printk(KERN_INFO) > > drivers/base/firmware_loader/main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c > index bf44c79beae9..2537da43a572 100644 > --- a/drivers/base/firmware_loader/main.c > +++ b/drivers/base/firmware_loader/main.c > @@ -504,6 +504,7 @@ fw_get_filesystem_firmware(struct device *device, struct fw_priv *fw_priv, > path); > continue; > } > + dev_dbg(device, "Loading firmware from %s\n", path); Because this is dev_dbg() I'm willing to consider it, so that its not always enabled. However its not in the right place, the code path you are addressing is only for direct filesystem lookups. If that fails some systems do a fallback call out to userspace. To cover both cases, you want it at the end of _request_firmware() on the success path. Can you send a new patch? Luis > if (decompress) { > dev_dbg(device, "f/w decompressing %s\n", > fw_priv->fw_name); > -- > 2.23.0 >