Skip to content

Commit 6a14f19

Browse files
guilhermepiccolikees
authored andcommitted
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 <gpiccoli@igalia.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221006224212.569555-4-gpiccoli@igalia.com
1 parent 8f5de3f commit 6a14f19

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/pstore/platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi)
665665
psinfo = NULL;
666666
kfree(backend);
667667
backend = NULL;
668+
669+
pr_info("Unregistered %s as persistent store backend\n", psi->name);
668670
mutex_unlock(&psinfo_lock);
669671
}
670672
EXPORT_SYMBOL_GPL(pstore_unregister);

0 commit comments

Comments
 (0)