diff options
author | Pierre Peiffer <pierre.peiffer@stericsson.com> | 2011-12-15 14:10:40 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:02:27 +0100 |
commit | de017349e03d858f4000e6cdf06486f0bc359a3e (patch) | |
tree | 8449556e77925dbc254a721cd14a66e93b8f577d /drivers/staging | |
parent | fc537f23e54cca6bcb8840731c55c8e947d40730 (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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/nmf-cm/cm/engine/elf/src/mmdsp-debug.c | 12 |
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; |