From: Guilherme G. Piccoli Date: Thu, 6 Oct 2022 22:42:07 +0000 (-0300) Subject: pstore: Inform unregistered backend names as well X-Git-Tag: v6.6.7~3820^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a14f1982e6b476c84938c9ca011d258a6bba24d;p=platform%2Fkernel%2Flinux-starfive.git pstore: Inform unregistered backend names as well 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 Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20221006224212.569555-4-gpiccoli@igalia.com --- diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index be05090..06c2c66 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi) psinfo = NULL; kfree(backend); backend = NULL; + + pr_info("Unregistered %s as persistent store backend\n", psi->name); mutex_unlock(&psinfo_lock); } EXPORT_SYMBOL_GPL(pstore_unregister);