os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/shared/debug.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/shared/debug.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,94 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @internalTechnology
    1.24 +*/
    1.25 +
    1.26 +
    1.27 +#ifndef DEBUG_H
    1.28 +#define DEBUG_H
    1.29 +
    1.30 +//#define _USBOTG_DEBUG_PRINT_
    1.31 +//#define _USBHOST_DEBUG_PRINT_
    1.32 +
    1.33 +#if (defined(_DEBUG) || defined(_DEBUG_RELEASE))
    1.34 +#include <e32debug.h>
    1.35 +#endif
    1.36 +
    1.37 +#if defined(_USBOTG_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE))
    1.38 +/** Trace - format string  */
    1.39 +#define __USBOTGPRINT(t) {RDebug::Print(t);}
    1.40 +/** Trace - format string with 1 param */
    1.41 +#define __USBOTGPRINT1(t,a) {RDebug::Print(t,a);}
    1.42 +/** Trace - format string with 2 params */
    1.43 +#define __USBOTGPRINT2(t,a,b) {RDebug::Print(t,a,b);}
    1.44 +/** Trace - format string with 3 params */
    1.45 +#define __USBOTGPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);}
    1.46 +/** Trace - format string with 4 params */
    1.47 +#define __USBOTGPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);}
    1.48 +/** Trace - format string with 5 params */
    1.49 +#define __USBOTGPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);}
    1.50 +#else
    1.51 +/** NULL definition */
    1.52 +#define __USBOTGPRINT(t)
    1.53 +/** NULL definition */
    1.54 +#define __USBOTGPRINT1(t,a)
    1.55 +/** NULL definition */
    1.56 +#define __USBOTGPRINT2(t,a,b)
    1.57 +/** NULL definition */
    1.58 +#define __USBOTGPRINT3(t,a,b,c)
    1.59 +/** NULL definition */
    1.60 +#define __USBOTGPRINT4(t,a,b,c,d)
    1.61 +/** NULL definition */
    1.62 +#define __USBOTGPRINT5(t,a,b,c,d,e)
    1.63 +#endif
    1.64 +
    1.65 +
    1.66 +#if defined(_USBHOST_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE))
    1.67 +/** Trace - format string  */
    1.68 +#define __USBHOSTPRINT(t) {RDebug::Print(t);}
    1.69 +/** Trace - format string with 1 param */
    1.70 +#define __USBHOSTPRINT1(t,a) {RDebug::Print(t,a);}
    1.71 +/** Trace - format string with 2 params */
    1.72 +#define __USBHOSTPRINT2(t,a,b) {RDebug::Print(t,a,b);}
    1.73 +/** Trace - format string with 3 params */
    1.74 +#define __USBHOSTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);}
    1.75 +/** Trace - format string with 4 params */
    1.76 +#define __USBHOSTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);}
    1.77 +/** Trace - format string with 5 params */
    1.78 +#define __USBHOSTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);}
    1.79 +#else
    1.80 +/** NULL definition */
    1.81 +#define __USBHOSTPRINT(t)
    1.82 +/** NULL definition */
    1.83 +#define __USBHOSTPRINT1(t,a)
    1.84 +/** NULL definition */
    1.85 +#define __USBHOSTPRINT2(t,a,b)
    1.86 +/** NULL definition */
    1.87 +#define __USBHOSTPRINT3(t,a,b,c)
    1.88 +/** NULL definition */
    1.89 +#define __USBHOSTPRINT4(t,a,b,c,d)
    1.90 +/** NULL definition */
    1.91 +#define __USBHOSTPRINT5(t,a,b,c,d,e)
    1.92 +#endif
    1.93 +
    1.94 +
    1.95 +
    1.96 +
    1.97 +#endif // DEBUG_H