From nobody Mon Apr 6 22:56:14 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56C9DC433FE for ; Thu, 6 Oct 2022 22:45:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232315AbiJFWng (ORCPT ); Thu, 6 Oct 2022 18:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbiJFWn2 (ORCPT ); Thu, 6 Oct 2022 18:43:28 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB326142C94; Thu, 6 Oct 2022 15:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BzPX7ATJ1oaxpGuf0PVinseY88CmdU+HARHaDj9AtIo=; b=XFTEarTMRQ8OPVLnEUe7ojm1rN KY2CyosasIJ4PjDyLd8UgRQhgpbO2C63gXavydiLAkrGkeBugdaoaMXSe/i2IrTVvqxoKQBCdtnbf T2FEzsQGQvW+fcQpwntv//6VjC7EZJ+kBwqArSTc5X4MsYdp1q78eFRAwYgKnw/uejGFoRZtnYp3B KlfEyqbxpctfP4Ml6yG7UPnZksHP9Cju9xhAKOagBStgz7kr4hpWR8aSx8d/HVNoAncZh55ssjkCg Hvvm2bu0ilt94rfR+O00FeVWKboVjPvrwOS477f/wjkz3KV6Aquu9rZ6G8rWjHOChDipD6Rqhh/QD APhNfXkA==; Received: from 201-43-120-40.dsl.telesp.net.br ([201.43.120.40] helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1ogZaP-00C4Ks-CC; Fri, 07 Oct 2022 00:43:26 +0200 From: "Guilherme G. Piccoli" To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: kernel-dev@igalia.com, kernel@gpiccoli.net, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, "Guilherme G. Piccoli" Subject: [PATCH 3/8] pstore: Inform unregistered backend names as well Date: Thu, 6 Oct 2022 19:42:07 -0300 Message-Id: <20221006224212.569555-4-gpiccoli@igalia.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221006224212.569555-1-gpiccoli@igalia.com> References: <20221006224212.569555-1-gpiccoli@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Currently we only show the registered ones in the kernel log; users that change backend for some reason require first to unregister the current one, so let's confirm this operation with a message in the log. Signed-off-by: Guilherme G. Piccoli --- fs/pstore/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index be05090076ce..06c2c66af332 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi) psinfo =3D NULL; kfree(backend); backend =3D NULL; + + pr_info("Unregistered %s as persistent store backend\n", psi->name); mutex_unlock(&psinfo_lock); } EXPORT_SYMBOL_GPL(pstore_unregister); --=20 2.38.0