equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definitions for tracing. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TRACEDEFS_H |
|
20 #define TRACEDEFS_H |
|
21 |
|
22 //----------------------------------------------------------------------------- |
|
23 // Constants |
|
24 //----------------------------------------------------------------------------- |
|
25 // |
|
26 |
|
27 /** |
|
28 * Prefix trace macro to complete tracing with component name. |
|
29 * Returns TDesC which can be used directly with RDebug or RFileLogger. |
|
30 */ |
|
31 #define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[MMKEYBEARER]: " L##aMsg ) |
|
32 |
|
33 #define _PREFIX_TRACE_2( aMsg1, aMsg2 ) TPtrC( (const TText*)L"[MMKEYBEARER]: " L##aMsg1 L##aMsg2 ) |
|
34 |
|
35 /** |
|
36 * Prefix macro for strings |
|
37 */ |
|
38 #define _PREFIX_CHAR( aMsg ) (const char*)"[MMKEYBEARER]: " ##aMsg |
|
39 |
|
40 #endif // TRACEDEFS_H |