diff options
author | Guilherme G. Piccoli <gpiccoli@igalia.com> | 2022-10-06 19:42:07 -0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-10-17 13:14:10 -0700 |
commit | 6a14f1982e6b476c84938c9ca011d258a6bba24d (patch) | |
tree | 6a724d6da0d3ec862b10314887a37fa3692169e5 /fs/pstore/platform.c | |
parent | 8f5de3fd38b7e64112017bb1630f9df6e1b3331d (diff) | |
download | lwn-6a14f1982e6b476c84938c9ca011d258a6bba24d.tar.gz lwn-6a14f1982e6b476c84938c9ca011d258a6bba24d.zip |
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
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 = 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); |