diff options
author | Vasile-Laurentiu Stanimir <vasile-laurentiu.stanimir@windriver.com> | 2020-11-04 16:05:32 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-12-01 23:09:17 +0300 |
commit | 26fecbf7602dd69b649914e61526bd67c557fece (patch) | |
tree | 1f412679073b9efebb805e81a078b32b00328c9c /fs/pstore/platform.c | |
parent | b6f8ed33ab2bbc58e40fb1e2fb0f9c90cab04baf (diff) | |
download | linux-26fecbf7602dd69b649914e61526bd67c557fece.tar.xz |
pstore: Move kmsg_bytes default into Kconfig
While kmsg_bytes can be set for pstore via mount, if a crash occurs
before the mount only partial console log will be stored as kmsg_bytes
defaults to a potentially different hardcoded value in the kernel
(PSTORE_DEFAULT_KMSG_BYTES). This makes it impossible to analyze valuable
post-mortem data especially on the embedded development or in the process
of bringing up new boards. Change this value to be a Kconfig option
with the default of old PSTORE_DEFAULT_KMSG_BYTES
Signed-off-by: Vasile-Laurentiu Stanimir <vasile-laurentiu.stanimir@windriver.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 36714df37d5d..32f64abc277c 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -101,7 +101,7 @@ static char *big_oops_buf; static size_t big_oops_buf_sz; /* How much of the console log to snapshot */ -unsigned long kmsg_bytes = PSTORE_DEFAULT_KMSG_BYTES; +unsigned long kmsg_bytes = CONFIG_PSTORE_DEFAULT_KMSG_BYTES; void pstore_set_kmsg_bytes(int bytes) { |