Message ID | 20230119164255.28091-2-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp9688wrn; Thu, 19 Jan 2023 20:38:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtJzaolg3hOhXKJw9fy+0E4GetTSfwqm5xDMCj1Mz6u3QFB94Cjma1g43+Cjz2E9VYatvO7 X-Received: by 2002:a17:90a:f483:b0:229:74a2:a692 with SMTP id bx3-20020a17090af48300b0022974a2a692mr13935703pjb.28.1674189523290; Thu, 19 Jan 2023 20:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674189523; cv=none; d=google.com; s=arc-20160816; b=b8ZBlhAkG5Pl8+lOB0qgB+2TLjT21fFrSMWgsyda8pbZPVDwR3XEUEnVx09ep64xp3 d5SLQl5+4rS4OH+YLPceUt8O59sD8qMaa2yiKkWy6svr0kAxNC7UfGsPwPhvxbrv902D JC0qngxQyWdDQNJcjZ9haG/bjRqKRnBq2t8dfo1GP7qfSqc8caL1rapm1wqzV90hGJUk 8B9MGUvf152pP/cl+MO6SOxHglCJyolRsie6BhHiheukbLfCJEXCfUtplPmggwcita1N n8OyTawhlt+hFyNXF3Aih0R+WiUFumC6UW1V5/LoUXIz15ocykNzW42soO5HXmW089Hc DZNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OXWJJ7GOw3Gc2widxDFABb28GCpT8U8QR+faRa7owjA=; b=ieYXqitYezVErFbU8YuzhTEW45Lnnfp33GfaAkEtqyFz9udXLwvFPYvzlT7OQAifF0 4SPmRyjR0UpPSjQvdyyONP1AhZL9au19ejjmYvbqc0WaJem/FmX/jjw3n3fo6jBa8/vD ++JeXa1N0VBAkPCRJ7sdbjWXZbyGWWDRXWZCVxbftrHd9XBUOPpTG01Cfn9fYXRT2J2b TrXbL+VHIfGbZd2NvOh0uXUuzx1s5BzONPU3EIIoAWYZjYKqdyWVDWNha6vtNfnCg3n1 M5z1rg5XUKeVEmYtrHiypooJJsIhqvcv/UGdrqjNun3IGGCCjq2XValp/xu9hOk+rKRW u9uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4ZmBDSe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a17090a400c00b0022ad16e158esi1201644pjc.135.2023.01.19.20.38.30; Thu, 19 Jan 2023 20:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4ZmBDSe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbjATEhf (ORCPT <rfc822;xxoosimple@gmail.com> + 99 others); Thu, 19 Jan 2023 23:37:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjATEhJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Jan 2023 23:37:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D24C3829; Thu, 19 Jan 2023 20:34:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 697FFB82629; Thu, 19 Jan 2023 16:45:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0129FC433D2; Thu, 19 Jan 2023 16:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674146748; bh=Ik8KGBx4efM6Qvmj0I2GTqwFRPzmKf5LmQQLhwoAEQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c4ZmBDSeAohseCGX28vHo4/i9s+S5U76T11M0gprfwIW+/x608C2+8ZozXffHJuz/ o5OmXKd5qFW+7FwSWAdteoeUd++W6qWB9LTf9s0AP6mp4Eu//+neoK4HaiEymf94Qz SX57/vt+rn+QH0OE/3sGKVRBVX8bG4za7YwcDDrP4vAj9JIGVrbpIurXqb3NZypOeC Az9QTIfTIhz2en5hXFtfhgAmnuC9BpcJbNzcl+qettrPojl78TE1/jYZOXPOzDvEgF rFnGGNaiT1VbCO7+k/J0Lw8wiemoJBc9isH8yIyeI/d0aqOUczW1Cn3XcukUiJSFk8 SD7OxzxPKTkig== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1pIY3M-0007Mr-2B; Thu, 19 Jan 2023 17:46:16 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Ard Biesheuvel <ardb@kernel.org> Cc: Matthew Garrett <mjg59@srcf.ucam.org>, Jeremy Kerr <jk@ozlabs.org>, Maximilian Luz <luzmaximilian@gmail.com>, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 1/4] efi: efivars: add efivars printk prefix Date: Thu, 19 Jan 2023 17:42:52 +0100 Message-Id: <20230119164255.28091-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.38.2 In-Reply-To: <20230119164255.28091-1-johan+linaro@kernel.org> References: <20230119164255.28091-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755514953373053342?= X-GMAIL-MSGID: =?utf-8?q?1755514953373053342?= |
Series | efi: verify that variable services are supported | |
Commit Message
Johan Hovold
Jan. 19, 2023, 4:42 p.m. UTC
Add an 'efivars: ' printk prefix to make the log entries stand out more,
for example:
efivars: Registered efivars operations
While at it, change the sole remaining direct printk() call to pr_err().
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/firmware/efi/vars.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/vars.c b/drivers/firmware/efi/vars.c index aa5ba38f81ff..f34e7741e0c3 100644 --- a/drivers/firmware/efi/vars.c +++ b/drivers/firmware/efi/vars.c @@ -6,6 +6,8 @@ * Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com> */ +#define pr_fmt(fmt) "efivars: " fmt + #include <linux/types.h> #include <linux/sizes.h> #include <linux/errno.h> @@ -90,7 +92,7 @@ int efivars_unregister(struct efivars *efivars) return -EINTR; if (!__efivars) { - printk(KERN_ERR "efivars not registered\n"); + pr_err("efivars not registered\n"); rv = -EINVAL; goto out; }