diff -r 000000000000 -r c6b0df440bee dbgagents/trkagent/dbgtrccomm/server/logging.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dbgagents/trkagent/dbgtrccomm/server/logging.h Tue Mar 02 10:33:16 2010 +0530 @@ -0,0 +1,43 @@ +/* +* 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: +* +*/ + + +#ifndef __LOGGING_H__ +#define __LOGGING_H__ + +#include + + +// +// Turn on this logging for debugging purposes when running with test code. +// If you turn on the logging either when tracing or while debugging, +// it won't work as the printf messages are handled both by trace core and debugger. +// +//#define _LOGGING_ + + +#ifdef _LOGGING_ +#define LOG_MSG(x) RDebug::Printf(x) +#define LOG_MSG2(x, y) RDebug::Printf(x, y) +#define LOG_MSG3(x, y, z) RDebug::Printf(x, y, z) +#else +#define LOG_MSG(x) +#define LOG_MSG2(x, y) +#define LOG_MSG3(x, y, z) +#endif + +#endif