pstore/platform: Use backend name for console registration
authorKees Cook <keescook@chromium.org>
Fri, 8 May 2020 16:26:28 +0000 (09:26 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 30 May 2020 17:34:02 +0000 (10:34 -0700)
commitd195c39052d1da278a00a6744ce59c383b67b191
tree602e153404b0da6cb4993664876fd1601aa63b4e
parent563ca40ddf400dbf8c6254077f9b6887101d0f08
pstore/platform: Use backend name for console registration

If the pstore backend changes, there's no indication in the logs what
the console is (it always says "pstore"). Instead, pass through the
active backend's name. (Also adjust the selftest to match.)

Link: https://lore.kernel.org/lkml/20200510202436.63222-5-keescook@chromium.org/
Link: https://lore.kernel.org/lkml/20200526135429.GQ12456@shao2-debian
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c
tools/testing/selftests/pstore/pstore_tests