From 5ebec164043cc51d5c24d935598148e0cd7cb655 Mon Sep 17 00:00:00 2001 From: Pierre Peiffer Date: Thu, 15 Dec 2011 14:10:40 +0100 Subject: U8500 CM: Don't print corrupted data When we detect a corruption, we try to print the corrupted data leading to a kernel panic. We stop to do that. ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson ID: 402487 ST-Ericsson Linux next: NA Signed-off-by: Pierre Peiffer Change-Id: I80f43567e06f8a057afc62874ca2ab065bb8e2a7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42710 Reviewed-by: QABUILD Reviewed-by: Pierre PEIFFER Tested-by: Pierre PEIFFER --- drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c b/drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c index 1342e9e0155..c6c316046b3 100644 --- a/drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c +++ b/drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c @@ -127,17 +127,13 @@ t_cm_error cm_DSPABI_AddLoadMap( if(((t_uint32)curItem->pNextItem < SDRAMMEM16_BASE_ADDR) || ((t_uint32)curItem->pNextItem > endSegmentAddr)) { if (prevItem == NULL) - ERROR("AddLoadMap: Memory corruption in MMDSP: at data DSP address=%x or ARM address=%x\n" - "Previou (first) component name %s<%s>\n", + ERROR("AddLoadMap: Memory corruption in MMDSP: at data DSP address=%x or ARM address=%x\n", curItemDspAdress + myoffsetof(struct LoadMapItem, pNextItem), &curItem->pNextItem, - curItem->pARMThis ? (char*)(((t_component_instance *)&curItem->pARMThis)->pathname) : "", - curItem->pARMThis ? (char*)(((t_component_instance *)&curItem->pARMThis)->Template->name) : "", 0, 0); + 0, 0, 0, 0); else - ERROR("AddLoadMap: Memory corruption in MMDSP: at data DSP address=%x or ARM address=%x\n" - "Previous valid component name %s<%s>", + ERROR("AddLoadMap: Memory corruption in MMDSP: at data DSP address=%x or ARM address=%x\n", curItemDspAdress + myoffsetof(struct LoadMapItem, pNextItem), &curItem->pNextItem, - prevItem->pARMThis ? (char*)(((t_component_instance *)&prevItem->pARMThis)->pathname) : "", - prevItem->pARMThis ? (char*)(((t_component_instance *)&prevItem->pARMThis)->Template->name) : "", 0, 0); + 0, 0, 0, 0); return CM_INVALID_DATA; } curItemDspAdress = (t_uint32)curItem->pNextItem; -- cgit v1.2.3