cpsecplugins/devicelockplugin/src/debug.h
author Salvatore Rinaldo <salvatorer@symbian.org>
Tue, 15 Jun 2010 12:58:39 +0100
branchGCC_SURGE
changeset 25 0cdac1d155ce
parent 19 098e361762d2
child 22 6b63ca65093a
permissions -rw-r--r--
Bug 2958 - GCC compilation issues in sf/mw/securitysrv

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0""
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  
 *
 */

#if 0
#ifndef DEBUG_H_
#define DEBUG_H_

#define DL_TRACE( x ) RDebug::Printf( "%s %s (%u) %s", __FILE__, __PRETTY_FUNCTION__, __LINE__, x );
#define DL_TRACE_NUM( x, y ) RDebug::Printf( "%s %s (%u) %s=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, x, y );


#endif /* DEBUG_H_ */
#endif





#ifndef SCPDEBUG_H
#define SCPDEBUG_H

   _LIT( KLogFile, "SCP.log" );
   _LIT( KLogDir, "tarm" );
   


#include <e32std.h>
#include <f32file.h>
#include <flogger.h>
#include <e32svr.h>

        inline void FWrite (TRefByValue<const TDesC> aFmt,...)
            {
            VA_LIST list;
            VA_START( list, aFmt );
            RFileLogger::WriteFormat( KLogDir,KLogFile,EFileLoggingModeAppend ,TPtrC(aFmt) ,list );
            }

                #define Dprint(arg...)    FWrite arg;
#else
                #define Dprint(arg...)
#endif  // _DEBUG