summaryrefslogtreecommitdiff
path: root/Core/EM/usb/rt/debug.c
blob: 32e6798c739c40cb3372ded9413fb2a12416d70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//****************************************************************************
//****************************************************************************
//**                                                                        **
//**             (C)Copyright 1985-2008, American Megatrends, Inc.          **
//**                                                                        **
//**                          All Rights Reserved.                          **
//**                                                                        **
//**                 5555 Oakbrook Pkwy, Norcross, GA 30093                 **
//**                                                                        **
//**                          Phone (770)-246-8600                          **
//**                                                                        **
//****************************************************************************
//****************************************************************************

//****************************************************************************
// $Header: /Alaska/SOURCE/Modules/USB/ALASKA/RT/debug.c 7     5/16/08 12:01p Olegi $
//
// $Revision: 7 $
//
// $Date: 5/16/08 12:01p $
//****************************************************************************
//****************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/USB/ALASKA/RT/debug.c $
// 
// 7     5/16/08 12:01p Olegi
// Compliance with AMI coding standard.
// 
// 6     3/20/07 12:18p Olegi
//
// 4     4/14/06 6:39p Olegi
// Conversion to be able to use x64 compiler.
//
// 3     3/20/06 3:37p Olegi
// Version 8.5 - x64 compatible.
//
// 2     8/26/05 12:25p Andriyn
// Simulate Mouse Sampling rate by disabling Mouse Polling (reduce USB
// SMI# generation)
//
// 1     3/28/05 6:20p Olegi
//
// 1     3/15/05 9:23a Olegi
// Initial VSS check-in.
//
//****************************************************************************

//<AMI_FHDR_START>
//-----------------------------------------------------------------------------
//
//  Name:           Debug.c
//
//  Description:    AMI USB Debug output implementation routnes
//
//-----------------------------------------------------------------------------
//<AMI_FHDR_END>

#include "amidef.h"

//<AMI_PHDR_START>
//---------------------------------------------------------------------------
//
// Name:        PrintDebugMessage (variable param)
//
// Description: This routine prints the debug message
//
// Parameters: Variable
//
// Output:      Status: SUCCESS = Success
//                      FAILURE = Failure
//
//---------------------------------------------------------------------------
//<AMI_PHDR_END>

RETCODE
PrintDebugMsg(
    int MsgLevel,
    char * Message, ...)
{
    VA_LIST ArgList;

    VA_START(ArgList, Message);

    if ((MsgLevel == 0) ||
        ((MsgLevel <= TopDebugLevel) &&
            (MsgLevel >= BottomDebugLevel)))
    {
#if DEBUG_SWITCH == 1
        EfiDebugVPrint(EFI_D_ERROR, Message, ArgList);
#endif
    }

    VA_END(ArgList);

    return SUCCESS;
}
//****************************************************************************
//****************************************************************************
//**                                                                        **
//**             (C)Copyright 1985-2008, American Megatrends, Inc.          **
//**                                                                        **
//**                          All Rights Reserved.                          **
//**                                                                        **
//**                 5555 Oakbrook Pkwy, Norcross, GA 30093                 **
//**                                                                        **
//**                          Phone (770)-246-8600                          **
//**                                                                        **
//****************************************************************************
//****************************************************************************