sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef DEBUG_H sl@0: #define DEBUG_H sl@0: sl@0: //#define _SCSI_DEBUG_PRINT_ sl@0: //#define _BOT_DEBUG_PRINT_ sl@0: //#define _HOST_DEBUG_PRINT_ sl@0: //#define _TESTREPORT_PRINT_ sl@0: sl@0: #if (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: #include sl@0: #endif sl@0: sl@0: #if defined(_SCSI_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __SCSIPRINT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __SCSIPRINT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __SCSIPRINT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __SCSIPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __SCSIPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __SCSIPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT(t) sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT1(t,a) sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __SCSIPRINT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: sl@0: #if defined(_BOT_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __BOTPRINT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __BOTPRINT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __BOTPRINT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __BOTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __BOTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __BOTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __BOTPRINT(t) sl@0: /** NULL definition */ sl@0: #define __BOTPRINT1(t,a) sl@0: /** NULL definition */ sl@0: #define __BOTPRINT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __BOTPRINT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __BOTPRINT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __BOTPRINT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: sl@0: #if defined(_HOST_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __HOSTPRINT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __HOSTPRINT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __HOSTPRINT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __HOSTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __HOSTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __HOSTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT(t) sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT1(t,a) sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __HOSTPRINT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: sl@0: #if defined(_TESTREPORT_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __TESTREPORT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __TESTREPORT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __TESTREPORT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __TESTREPORT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __TESTREPORT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __TESTREPORT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __TESTREPORT(t) sl@0: /** NULL definition */ sl@0: #define __TESTREPORT1(t,a) sl@0: /** NULL definition */ sl@0: #define __TESTREPORT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __TESTREPORT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __TESTREPORT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __TESTREPORT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: #endif // DEBUG_H