os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/shared/debug.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
sl@0
    17
sl@0
    18
/**
sl@0
    19
 @file
sl@0
    20
 @internalTechnology
sl@0
    21
*/
sl@0
    22
sl@0
    23
sl@0
    24
#ifndef DEBUG_H
sl@0
    25
#define DEBUG_H
sl@0
    26
sl@0
    27
//#define _USBOTG_DEBUG_PRINT_
sl@0
    28
//#define _USBHOST_DEBUG_PRINT_
sl@0
    29
sl@0
    30
#if (defined(_DEBUG) || defined(_DEBUG_RELEASE))
sl@0
    31
#include <e32debug.h>
sl@0
    32
#endif
sl@0
    33
sl@0
    34
#if defined(_USBOTG_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE))
sl@0
    35
/** Trace - format string  */
sl@0
    36
#define __USBOTGPRINT(t) {RDebug::Print(t);}
sl@0
    37
/** Trace - format string with 1 param */
sl@0
    38
#define __USBOTGPRINT1(t,a) {RDebug::Print(t,a);}
sl@0
    39
/** Trace - format string with 2 params */
sl@0
    40
#define __USBOTGPRINT2(t,a,b) {RDebug::Print(t,a,b);}
sl@0
    41
/** Trace - format string with 3 params */
sl@0
    42
#define __USBOTGPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);}
sl@0
    43
/** Trace - format string with 4 params */
sl@0
    44
#define __USBOTGPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);}
sl@0
    45
/** Trace - format string with 5 params */
sl@0
    46
#define __USBOTGPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);}
sl@0
    47
#else
sl@0
    48
/** NULL definition */
sl@0
    49
#define __USBOTGPRINT(t)
sl@0
    50
/** NULL definition */
sl@0
    51
#define __USBOTGPRINT1(t,a)
sl@0
    52
/** NULL definition */
sl@0
    53
#define __USBOTGPRINT2(t,a,b)
sl@0
    54
/** NULL definition */
sl@0
    55
#define __USBOTGPRINT3(t,a,b,c)
sl@0
    56
/** NULL definition */
sl@0
    57
#define __USBOTGPRINT4(t,a,b,c,d)
sl@0
    58
/** NULL definition */
sl@0
    59
#define __USBOTGPRINT5(t,a,b,c,d,e)
sl@0
    60
#endif
sl@0
    61
sl@0
    62
sl@0
    63
#if defined(_USBHOST_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE))
sl@0
    64
/** Trace - format string  */
sl@0
    65
#define __USBHOSTPRINT(t) {RDebug::Print(t);}
sl@0
    66
/** Trace - format string with 1 param */
sl@0
    67
#define __USBHOSTPRINT1(t,a) {RDebug::Print(t,a);}
sl@0
    68
/** Trace - format string with 2 params */
sl@0
    69
#define __USBHOSTPRINT2(t,a,b) {RDebug::Print(t,a,b);}
sl@0
    70
/** Trace - format string with 3 params */
sl@0
    71
#define __USBHOSTPRINT3(t,a,b,c) {RDebug::Print(t,a,b,c);}
sl@0
    72
/** Trace - format string with 4 params */
sl@0
    73
#define __USBHOSTPRINT4(t,a,b,c,d) {RDebug::Print(t,a,b,c,d);}
sl@0
    74
/** Trace - format string with 5 params */
sl@0
    75
#define __USBHOSTPRINT5(t,a,b,c,d,e) {RDebug::Print(t,a,b,c,d,e);}
sl@0
    76
#else
sl@0
    77
/** NULL definition */
sl@0
    78
#define __USBHOSTPRINT(t)
sl@0
    79
/** NULL definition */
sl@0
    80
#define __USBHOSTPRINT1(t,a)
sl@0
    81
/** NULL definition */
sl@0
    82
#define __USBHOSTPRINT2(t,a,b)
sl@0
    83
/** NULL definition */
sl@0
    84
#define __USBHOSTPRINT3(t,a,b,c)
sl@0
    85
/** NULL definition */
sl@0
    86
#define __USBHOSTPRINT4(t,a,b,c,d)
sl@0
    87
/** NULL definition */
sl@0
    88
#define __USBHOSTPRINT5(t,a,b,c,d,e)
sl@0
    89
#endif
sl@0
    90
sl@0
    91
sl@0
    92
sl@0
    93
sl@0
    94
#endif // DEBUG_H