kprint.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*++
  2. Copyright (c) 2012 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. kprint.c
  5. Abstract:
  6. This module implements common printf-like routines in the kernel.
  7. Author:
  8. Evan Green 24-Jul-2012
  9. Environment:
  10. Kernel
  11. --*/
  12. //
  13. // ------------------------------------------------------------------- Includes
  14. //
  15. #include "rtlp.h"
  16. #include <minoca/kernel/arch.h>
  17. #include <minoca/kernel/hmod.h>
  18. #include <minoca/kernel/kdebug.h>
  19. //
  20. // ---------------------------------------------------------------- Definitions
  21. //
  22. //
  23. // ------------------------------------------------------ Data Type Definitions
  24. //
  25. //
  26. // ----------------------------------------------- Internal Function Prototypes
  27. //
  28. //
  29. // -------------------------------------------------------------------- Globals
  30. //
  31. //
  32. // ------------------------------------------------------------------ Functions
  33. //
  34. RTL_API
  35. VOID
  36. RtlDebugPrint (
  37. PSTR Format,
  38. ...
  39. )
  40. /*++
  41. Routine Description:
  42. This routine prints a printf-style string to the debugger.
  43. Arguments:
  44. Format - Supplies the printf-style format string to print. The contents of
  45. this string determine the rest of the arguments passed.
  46. ... - Supplies any arguments needed to convert the Format string.
  47. Return Value:
  48. None.
  49. --*/
  50. {
  51. va_list ArgumentList;
  52. //
  53. // Simply pass the data on to the debugger's print function.
  54. //
  55. va_start(ArgumentList, Format);
  56. KdPrintWithArgumentList(Format, ArgumentList);
  57. va_end(ArgumentList);
  58. return;
  59. }