sl@0: // Copyright (c) 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: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: sl@0: #ifndef DEBUG_H sl@0: #define DEBUG_H sl@0: sl@0: //#define _USBOTG_DEBUG_PRINT_ sl@0: //#define _USBHOST_DEBUG_PRINT_ sl@0: sl@0: #if (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: #include sl@0: #endif sl@0: sl@0: #if defined(_USBOTG_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __USBOTGPRINT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __USBOTGPRINT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __USBOTGPRINT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __USBOTGPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __USBOTGPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __USBOTGPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT(t) sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT1(t,a) sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __USBOTGPRINT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: sl@0: #if defined(_USBHOST_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) sl@0: /** Trace - format string */ sl@0: #define __USBHOSTPRINT(t) {RDebug::Print(t);} sl@0: /** Trace - format string with 1 param */ sl@0: #define __USBHOSTPRINT1(t,a) {RDebug::Print(t,a);} sl@0: /** Trace - format string with 2 params */ sl@0: #define __USBHOSTPRINT2(t,a,b) {RDebug::Print(t,a,b);} sl@0: /** Trace - format string with 3 params */ sl@0: #define __USBHOSTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);} sl@0: /** Trace - format string with 4 params */ sl@0: #define __USBHOSTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);} sl@0: /** Trace - format string with 5 params */ sl@0: #define __USBHOSTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);} sl@0: #else sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT(t) sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT1(t,a) sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT2(t,a,b) sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT3(t,a,b,c) sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT4(t,a,b,c,d) sl@0: /** NULL definition */ sl@0: #define __USBHOSTPRINT5(t,a,b,c,d,e) sl@0: #endif sl@0: sl@0: sl@0: sl@0: sl@0: #endif // DEBUG_H