Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\nkernsa\debug.cpp
18 #include <nktest/nkutils.h>
22 void DumpMemory(const char* msg, const void* data, int length)
24 const unsigned char* s = (const unsigned char*)data;
26 DEBUGPRINT("%s", msg);
27 for (i=0; i<length; i+=0x10)
29 DEBUGPRINT("%08x: %02x %02x %02x %02x %02x %02x %02x %02x | %02x %02x %02x %02x %02x %02x %02x %02x",
31 s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7],
32 s[8], s[9], s[10], s[11], s[12], s[13], s[14], s[15]