natfw/natfwconnectionmultiplexer/inc/ncmconnectionmultiplexerlogs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:    Macroes for logging
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef NCMCONNECTIONMULTIPLEXERLOGS_H
       
    23 #define NCMCONNECTIONMULTIPLEXERLOGS_H
       
    24 
       
    25 
       
    26 #include "natfwlogs.h"
       
    27 
       
    28 #ifdef _DEBUG
       
    29     #define __CONNECTIONMULTIPLEXER_LOGS
       
    30 #endif
       
    31 
       
    32 #ifdef __CONNECTIONMULTIPLEXER_LOGS
       
    33     _LIT(KConnectionMux, "NATFW/Connection Multiplexer:");
       
    34 
       
    35     #define __CONNECTIONMULTIPLEXER(a) \
       
    36         {  _LIT( KStr, a); TNATFWLog::Print( KConnectionMux, KStr ); }
       
    37     #define __CONNECTIONMULTIPLEXER_INT1(a, b) \
       
    38         {  _LIT( KStr, a); TNATFWLog::Print( KConnectionMux, KStr, b); }
       
    39     #define __CONNECTIONMULTIPLEXER_INT2(a, b, c, d) \
       
    40         { _LIT( KStr1, a); _LIT( KStr2, c); \
       
    41         TNATFWLog::Print( KConnectionMux, KStr1, b, KStr2, d); }
       
    42     #define __CONNECTIONMULTIPLEXER_INT3(a, b, c, d, e, f) \
       
    43         { _LIT( KStr1, a); _LIT( KStr2, c); _LIT( KStr3, e); \
       
    44         TNATFWLog::Print( KConnectionMux, KStr1, b, KStr2, d, KStr3, f); }
       
    45     #define __CONNECTIONMULTIPLEXER_STR(a, b) \
       
    46         { _LIT( KStr, a); TNATFWLog::Print( KConnectionMux, KStr, b); }
       
    47     #define __CONNECTIONMULTIPLEXER_STR8(a, b) \
       
    48         { _LIT( KStr, a); TNATFWLog::Print( KConnectionMux, KStr, b); }
       
    49     #define __CONNECTIONMULTIPLEXER_ADDRLOG( a, b ) \
       
    50         { _LIT( KStr, a); TNATFWLog::Print( KConnectionMux, KStr, b ); }
       
    51 #else
       
    52     #define __CONNECTIONMULTIPLEXER(a)
       
    53     #define __CONNECTIONMULTIPLEXER_INT1(a, b)
       
    54     #define __CONNECTIONMULTIPLEXER_INT2(a, b, c, d)
       
    55     #define __CONNECTIONMULTIPLEXER_INT3(a, b, c, d, e, f)
       
    56     #define __CONNECTIONMULTIPLEXER_STR(a, b)
       
    57     #define __CONNECTIONMULTIPLEXER_STR8(a, b)
       
    58     #define __CONNECTIONMULTIPLEXER_ADDRLOG( a, b )
       
    59 #endif
       
    60 
       
    61 #endif // NCMCONNECTIONMULTIPLEXERLOGS_H