windows-nt/Source/XPSP1/NT/base/busdrv/pccard/memcard/debug.c

71 lines
831 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1999 Microsoft Corporation
Module Name:
debug.c
Abstract:
This module provides debugging support.
Author:
Neil Sandlin (neilsa) 26-Apr-99
Revision History:
--*/
#include "pch.h"
#if DBG
ULONG MemCardDebugLevel = 1;
VOID
MemCardDebugPrint(
ULONG DebugMask,
PCCHAR DebugMessage,
...
)
/*++
Routine Description:
Debug print for the PCMCIA enabler.
Arguments:
Check the mask value to see if the debug message is requested.
Return Value:
None
--*/
{
va_list ap;
char buffer[256];
va_start(ap, DebugMessage);
if (DebugMask & MemCardDebugLevel) {
vsprintf(buffer, DebugMessage, ap);
DbgPrint(buffer);
}
va_end(ap);
} // end MemcardDebugPrint()
#endif