[9610] drivers: mcu_ipc: Add debug log to verify CP memory map
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Mon, 16 Jul 2018 04:17:35 +0000 (13:17 +0900)
committerJungi Lee <jungilsi.lee@samsung.com>
Tue, 17 Jul 2018 12:01:35 +0000 (21:01 +0900)
Change-Id: Ia4651cde60d4d3329963e1ed8ef05b95ed7bfbf5
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/misc/mcu_ipc/shm_ipc.c

index 4a45c2621ae17f67084b936cdde461058c043362..c4bd7fe0c33b145587f246a008da4bf021827179 100644 (file)
@@ -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;
                }