From 2e0962aeeee8470b0030f6ed2fbbd472c0b0ec00 Mon Sep 17 00:00:00 2001 From: Jiyoung Jeong Date: Mon, 16 Jul 2018 13:17:35 +0900 Subject: [PATCH] [9610] drivers: mcu_ipc: Add debug log to verify CP memory map Change-Id: Ia4651cde60d4d3329963e1ed8ef05b95ed7bfbf5 Signed-off-by: Jiyoung Jeong --- drivers/misc/mcu_ipc/shm_ipc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/misc/mcu_ipc/shm_ipc.c b/drivers/misc/mcu_ipc/shm_ipc.c index 4a45c2621ae1..c4bd7fe0c33b 100644 --- a/drivers/misc/mcu_ipc/shm_ipc.c +++ b/drivers/misc/mcu_ipc/shm_ipc.c @@ -549,6 +549,7 @@ static int verify_cp_memory_map(struct cp_reserved_map_table *tab) int verify = 1; if (tab->ext_bin_count <= 0 || (tab->ext_bin_count > EXTERN_BIN_MAX_COUNT)) { + pr_err("ERROR ext_bin_count=%d\n", tab->ext_bin_count); verify = 0; goto exit; } @@ -556,6 +557,10 @@ static int verify_cp_memory_map(struct cp_reserved_map_table *tab) for (i = 1; i < total_bin; i++) { if (cp_mem_map.sExtBin[i-1].ext_bin_addr + cp_mem_map.sExtBin[i-1].ext_bin_size != cp_mem_map.sExtBin[i].ext_bin_addr) { + pr_err("ERROR ext_bin_addr[%d]=0x%08x ext_bin_size[%d]=0x%08x ext_bin_addr[%d]=0x%08x\n", + i-1, cp_mem_map.sExtBin[i-1].ext_bin_addr, + i-1, cp_mem_map.sExtBin[i-1].ext_bin_size, + i, cp_mem_map.sExtBin[i].ext_bin_addr); verify = 0; goto exit; } -- 2.20.1