Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3062622ybx; Sun, 3 Nov 2019 09:51:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzrCkdcwcZ4HH72SYjlne67oMMjkLE5odgs1R2vLyAjhRO7SJ0mmruTmut6Wu3TiwIdWZCk X-Received: by 2002:aa7:c6c9:: with SMTP id b9mr14947030eds.1.1572803517660; Sun, 03 Nov 2019 09:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572803517; cv=none; d=google.com; s=arc-20160816; b=fA0tDz1dXnFhnDfjFJ7PWx82C51SuBFV717Y5NEiVEaIIQgVt+oqz0AFu6yb62ICUr 2ctWAdMONTq8cg0ZTcFPBrPils9YQmQup18dAYgp5W9Ug8lxBq0jv3RDKt1LqK+yTD6T /H38ljp/Ueo1pIS7yfObNUg4S/4w8W6CwRk+msxqREnP3E1ruYpGekax42meoVqV5PWj fNNIGwb6eRMQ/uIRvsIlnYaueueng1i9p+lLKf+uqSiA2fk7dOYd6Q8/Mb7k9PK83DUL X9x/4W/YgPwnsRf4e+3PBHkdojfFg32a7DdObUA/js9Ixj+JYQ7WA4dZFvq/x4QSBYDJ YrHw== 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:dkim-signature; bh=Yf0bIAuMjMt/h5RLbTjlCFXxMFEBY7YowWyy8ZAXvNA=; b=Kp3A51u25hMjyADg9KQXPTxKWZm55+FIjE5rb/oOYcvelxw5l79RaY0mBJio6tmQcg KD6ozWGYPASQnQA8/YTEHpTBpOf0Kf/+0ydmiaUKPOkGVSIL91JUadPVC/kl11SOJALY nwX9uZrptNYhRMsv+qNZAiqfelqFOI3+puSL81rt9iwZXdeDQwwmpBSqv7J3mF9ysuKp G0l4tiTSIzF4dTQfkF6+y3nIeOFfcw1x8nMVfKB5+6AqetzcNhCYRAT9vWishLOqv0K7 gj1OxqJxTfLS5++4uy9w6EwApDZgKoPdlvJNTGNqBMOMQy8pS7IPxHgtzLC2VrO4YQ5i YH0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Aq8wmak4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si4944332edz.114.2019.11.03.09.51.31; Sun, 03 Nov 2019 09:51:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Aq8wmak4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727842AbfKCRuP (ORCPT + 99 others); Sun, 3 Nov 2019 12:50:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:60864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbfKCRuO (ORCPT ); Sun, 3 Nov 2019 12:50:14 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B643F2084D; Sun, 3 Nov 2019 17:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572803414; bh=PlOin1l6slPT5/U5vXvLzfTrvHg0QrB1rLhKWDlIkWw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aq8wmak45kO3jB3Frea8gx6xhrITGJ1OwasEFIYEoRmkjy+c/TEApVPZ3VSPxiOKu Dk4vZMh3aVmIbzn/AikMxU0KZgg1p1BG/iJdGU9rbLGmZLK1R2WEte69miitRFPf1A HLLvO3ZZiahEl89uP1Z4XGv48j2PMFH/O68i7X1o= Date: Sun, 3 Nov 2019 18:50:11 +0100 From: Greg Kroah-Hartman To: Drew DeVault Cc: Luis Chamberlain , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , ~sircmpwn/public-inbox@lists.sr.ht Subject: Re: [PATCH] firmware loader: log path to loaded firmwares Message-ID: <20191103175011.GA751209@kroah.com> References: <20191103173837.1861-1-sir@cmpwn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191103173837.1861-1-sir@cmpwn.com> User-Agent: Mutt/1.12.2 (2019-09-21) 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 12:38:38PM -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 > --- > drivers/base/firmware_loader/main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c > index bf44c79beae9..139d40a2f423 100644 > --- a/drivers/base/firmware_loader/main.c > +++ b/drivers/base/firmware_loader/main.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > > #include > > @@ -504,6 +505,7 @@ fw_get_filesystem_firmware(struct device *device, struct fw_priv *fw_priv, > path); > continue; > } > + printk(KERN_INFO "Loading firmware from %s\n", path); And it's totally noisy :( Also, if you have a 'struct device' you should always use the dev_*() calls instead, which will show you exactly what device is asking for what. Please just make this a debug call, that way you can turn it on dynamically if you really want to see what firmware is attempting to be loaded. thanks, greg k-h