Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2082573rwb; Thu, 19 Jan 2023 20:46:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsk/n2v00Qiq5lIyNb3mJkFNUZee9fadktGy/BswQfY7XDtbWuNj+r5DLSecvmoDkB97edH X-Received: by 2002:a17:906:d8a8:b0:84b:b481:6188 with SMTP id qc8-20020a170906d8a800b0084bb4816188mr10021651ejb.64.1674189983017; Thu, 19 Jan 2023 20:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674189983; cv=none; d=google.com; s=arc-20160816; b=A/Ql6IfLnHACmp7w1TvdQCpDXnzVxLJSN/ETOPBXjWW0gBATdk75Vy/lzPfkw0aASN uy5ivhpE/Uw4VIz3ddYzAAiTVoQIdaJ6J77kslbvUnGiyWirrLM7MByLqWMlpeZGxB0A F9NBs7C7s/DV0hqWqOyC1rW/gQj2Xlqtm9TM0O59+6+x3k48eVI9f3MG0KbKiPJABPzh 94hOr9USdFmJyAfN/iPQlYAhA70yUmjP5T1xG2Qp7JKOUbQ2gYPWEFsYCw3tMekvHeVE 6rQRnUUz6oI8H9y2yIDuAm/ICVl8uhkxTtFqRTN7HsoEm9JPbysAOSa4xvrt3raM8FUk uAdg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt16-20020a170907729000b0086eebb36578si16774585ejc.664.2023.01.19.20.46.11; Thu, 19 Jan 2023 20:46:23 -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 + 47 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 ); 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 ) id 1pIY3M-0007Mr-2B; Thu, 19 Jan 2023 17:46:16 +0100 From: Johan Hovold To: Ard Biesheuvel Cc: Matthew Garrett , Jeremy Kerr , Maximilian Luz , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ +#define pr_fmt(fmt) "efivars: " fmt + #include #include #include @@ -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; } -- 2.38.2