summaryrefslogtreecommitdiffstats
path: root/fs/pstore/platform.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-11-01 22:03:07 +0100
committerKees Cook <keescook@chromium.org>2018-12-04 01:52:35 +0100
commit0eed84ffb094bbddfb4b9378ef0a2eccf4dda99c (patch)
tree67a4d68cf26f25dde588702cb4ed4f905436e91b /fs/pstore/platform.c
parentpstore/ram: Add kern-doc for struct persistent_ram_zone (diff)
downloadlinux-0eed84ffb094bbddfb4b9378ef0a2eccf4dda99c.tar.xz
linux-0eed84ffb094bbddfb4b9378ef0a2eccf4dda99c.zip
pstore: Improve and update some comments and status output
This improves and updates some comments: - dump handler comment out of sync from calling convention - fix kern-doc typo and improves status output: - reminder that only kernel crash dumps are compressed - do not be silent about ECC infrastructure failures Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r--fs/pstore/platform.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index a75756c48e10..32340e7dd6a5 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -304,7 +304,7 @@ static void allocate_buf_for_compression(void)
big_oops_buf_sz = size;
big_oops_buf = buf;
- pr_info("Using compression: %s\n", zbackend->name);
+ pr_info("Using crash dump compression: %s\n", zbackend->name);
}
static void free_buf_for_compression(void)
@@ -354,9 +354,8 @@ void pstore_record_init(struct pstore_record *record,
}
/*
- * callback from kmsg_dump. (s2,l2) has the most recently
- * written bytes, older bytes are in (s1,l1). Save as much
- * as we can from the end of the buffer.
+ * callback from kmsg_dump. Save as much as we can (up to kmsg_bytes) from the
+ * end of the buffer.
*/
static void pstore_dump(struct kmsg_dumper *dumper,
enum kmsg_dump_reason reason)