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 <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8f5de3f commit 6a14f19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)