[NEUS7920-477] wlbt: log phys addr of logring buffer
authorIvan Priest <i.priest@samsung.com>
Thu, 9 May 2019 08:53:16 +0000 (09:53 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:46:06 +0000 (23:46 +0900)
Aid to extracting logring from ramdump via mxdecoder

Change-Id: I04ecb1f7b60dfcb4f48993ce8222914846ff0b18
SCSC-Bug-Id: SSB-34637
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/scsc_logring_main.c

index f9e966d1a8f2c4fef0db5d1d4f7d55875d903bfa..194e043805a456b8390a9bb1b357123ca2986799 100644 (file)
@@ -82,8 +82,9 @@ int __init samlog_init(void)
        pr_info("Samlog Loaded.\n");
        scsc_printk_tag(FORCE_PRK, NO_TAG, "Samlog Started.\n");
        scsc_printk_tag(NO_ECHO_PRK, NO_TAG,
-                       "Allocated ring buffer of size %zd bytes.\n",
-                       rb->bsz);
+                       "Allocated ring buffer of size %zd bytes at %p - %p\n",
+                       rb->bsz, virt_to_phys((const volatile void *)rb->buf),
+                       virt_to_phys((const volatile void *)(rb->buf + rb->bsz)));
        scsc_printk_tag(NO_ECHO_PRK, NO_TAG,
                        "Using THROWAWAY DYNAMIC per-reader buffer.\n");