12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /*++
- Copyright (c) 2012 Minoca Corp. All Rights Reserved
- Module Name:
- kprint.c
- Abstract:
- This module implements common printf-like routines in the kernel.
- Author:
- Evan Green 24-Jul-2012
- Environment:
- Kernel
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include "rtlp.h"
- #include <minoca/kernel/arch.h>
- #include <minoca/kernel/hmod.h>
- #include <minoca/kernel/kdebug.h>
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // ----------------------------------------------- Internal Function Prototypes
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // ------------------------------------------------------------------ Functions
- //
- RTL_API
- VOID
- RtlDebugPrint (
- PSTR Format,
- ...
- )
- /*++
- Routine Description:
- This routine prints a printf-style string to the debugger.
- Arguments:
- Format - Supplies the printf-style format string to print. The contents of
- this string determine the rest of the arguments passed.
- ... - Supplies any arguments needed to convert the Format string.
- Return Value:
- None.
- --*/
- {
- va_list ArgumentList;
- //
- // Simply pass the data on to the debugger's print function.
- //
- va_start(ArgumentList, Format);
- KdPrintWithArgumentList(Format, ArgumentList);
- va_end(ArgumentList);
- return;
- }
|