Update contrib.
1 // Copyright (c) 2006-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 // Logging macros for use in debug subsystem
18 #ifndef RM_DEBUG_LOGGING_H
19 #define RM_DEBUG_LOGGING_H
23 * Debug messages are only generated for debug builds.
25 * For kernel mode, use __KTRACE_OPT(KDEBUGGER, Kern::Printf(),
26 * for user mode use RDebug::Printf().
32 #ifdef __KERNEL_MODE__
34 #include <kernel/kernel.h>
35 #include <nkern/nk_trace.h>
37 #define LOG_MSG( a ) __KTRACE_OPT(KDEBUGGER, Kern::Printf( a ))
38 #define LOG_MSG2( a, b ) __KTRACE_OPT(KDEBUGGER, Kern::Printf( a, b ))
39 #define LOG_MSG3( a, b, c ) __KTRACE_OPT(KDEBUGGER, Kern::Printf( a, b, c ))
40 #define LOG_MSG4( a, b, c, d ) __KTRACE_OPT(KDEBUGGER, Kern::Printf( a, b, c, d ))
41 #define LOG_MSG5( a, b, c, d, e ) __KTRACE_OPT(KDEBUGGER, Kern::Printf( a, b, c, d, e ))
46 #define LOG_MSG( a ) RDebug::Printf( a )
47 #define LOG_MSG2( a, b ) RDebug::Printf( a, b )
48 #define LOG_MSG3( a, b, c ) RDebug::Printf( a, b, c )
49 #define LOG_MSG4( a, b, c, d ) RDebug::Printf( a, b, c, d )
50 #define LOG_MSG5( a, b, c, d, e ) RDebug::Printf( a, b, c, d, e )
57 #define LOG_MSG2( a, b )
58 #define LOG_MSG3( a, b, c )
59 #define LOG_MSG4( a, b, c, d )
60 #define LOG_MSG5( a, b, c, d, e )
64 #endif //RM_DEBUG_LOGGING_H