deviceupdatesui/deviceupdates/inc/nsmldmsyncdebug.h
author hgs
Tue, 13 Jul 2010 03:51:25 +0530
changeset 46 b9b00b134b0d
parent 33 7464c1e21dae
permissions -rw-r--r--
201023
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     1
/*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     2
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     3
* All rights reserved.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     8
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     9
* Initial Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    11
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    12
* Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    13
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    14
* Description:  This file defines logging macros for DM
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    15
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    16
*/
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    17
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    18
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    19
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    20
#ifndef NSMLDMSYNCDEBUG_H
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    21
#define NSMLDMSYNCDEBUG_H
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    22
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    23
#ifdef _DEBUG
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    24
#include <e32svr.h>
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    25
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    26
#define FLOG( a )   { RDebug::Print( _L(a) ); }
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    27
#define FTRACE( a ) { a; }
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    28
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    29
// Declare the FPrint function
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    30
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    31
inline void FPrint( const TRefByValue<const TDesC> aFmt, ... )
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    32
    {
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    33
    VA_LIST list;
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    34
    VA_START( list, aFmt );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    35
    TInt tmpInt = VA_ARG( list, TInt );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    36
    TInt tmpInt2 = VA_ARG( list, TInt );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    37
    TInt tmpInt3 = VA_ARG( list, TInt );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    38
    VA_END( list );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    39
    RDebug::Print( aFmt, tmpInt, tmpInt2, tmpInt3 );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    40
    }
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    41
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    42
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    43
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    44
// ===========================================================================
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    45
#else // // No loggings --> Reduced binary size
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    46
// ===========================================================================
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    47
#define FLOG( a )
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    48
#define FTRACE( a )
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    49
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    50
#endif // _DEBUG
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    51
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    52
#endif      // NSMLDMSYNCDEBUG_H
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    53
            
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    54
// End of File
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    55