diff options
author | Kees Cook <keescook@chromium.org> | 2018-11-01 14:14:47 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-12-03 16:52:35 -0800 |
commit | dc80b1ea4cbff1d72ce3d5edaaf1b6602fd7c780 (patch) | |
tree | 812a7b874b01a747f96f47f2dd80f6b79b85dc25 /fs/pstore/ram.c | |
parent | 9ee85b8bd3cab1a151850b6648cab7ed2e0d8192 (diff) | |
download | linux-stable-dc80b1ea4cbff1d72ce3d5edaaf1b6602fd7c780.tar.gz linux-stable-dc80b1ea4cbff1d72ce3d5edaaf1b6602fd7c780.tar.bz2 linux-stable-dc80b1ea4cbff1d72ce3d5edaaf1b6602fd7c780.zip |
pstore/ram: Report backend assignments with finer granularity
In order to more easily perform automated regression testing, this
adds pr_debug() calls to report each prz allocation which can then be
verified against persistent storage. Specifically, seeing the dividing
line between header, data, any ECC bytes. (And the general assignment
output is updated to remove the bogus ECC blocksize which isn't actually
recorded outside the prz instance.)
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r-- | fs/pstore/ram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 768759841491..10ac4d23c423 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -853,9 +853,9 @@ static int ramoops_probe(struct platform_device *pdev) ramoops_pmsg_size = pdata->pmsg_size; ramoops_ftrace_size = pdata->ftrace_size; - pr_info("attached 0x%lx@0x%llx, ecc: %d/%d\n", + pr_info("using 0x%lx@0x%llx, ecc: %d\n", cxt->size, (unsigned long long)cxt->phys_addr, - cxt->ecc_info.ecc_size, cxt->ecc_info.block_size); + cxt->ecc_info.ecc_size); return 0; |