summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Peiffer <pierre.peiffer@stericsson.com>2011-12-15 14:10:40 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:04 +0200
commit5ebec164043cc51d5c24d935598148e0cd7cb655 (patch)
tree5b6437dfc7e75fdb329d980e2554726aab9ad250
parent877cccc561b35b59383487b2ac73e7d8e8ed2f4d (diff)
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 <pierre.peiffer@stericsson.com> Change-Id: I80f43567e06f8a057afc62874ca2ab065bb8e2a7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42710 Reviewed-by: QABUILD Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
-rw-r--r--drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c12
1 files 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) : "<null>",
- curItem->pARMThis ? (char*)(((t_component_instance *)&curItem->pARMThis)->Template->name) : "<null>", 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) : "<null>",
- prevItem->pARMThis ? (char*)(((t_component_instance *)&prevItem->pARMThis)->Template->name) : "<null>", 0, 0);
+ 0, 0, 0, 0);
return CM_INVALID_DATA;
}
curItemDspAdress = (t_uint32)curItem->pNextItem;