Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

227 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. blio.c
  5. Abstract:
  6. This module contains the stub code for the debug print API's.
  7. Author:
  8. David N. Cutler (davec) 2-Feby-2000
  9. Revision History:
  10. --*/
  11. #include "bootlib.h"
  12. #include "stdarg.h"
  13. #if !defined(ENABLE_LOADER_DEBUG)
  14. #if !defined (_IA64_) || !defined (FORCE_CD_BOOT)
  15. ULONG
  16. DbgPrint(
  17. IN PCHAR Format,
  18. ...
  19. )
  20. //++
  21. //
  22. // Routine Description:
  23. //
  24. // This routine provides a "printf" style capability for the kernel
  25. // debugger.
  26. //
  27. // Note: control-C is consumed by the debugger and returned to
  28. // this routine as status. If status indicates control-C was
  29. // pressed, this routine breakpoints.
  30. //
  31. // Arguments:
  32. //
  33. // Format - printf style format string
  34. // ... - additional arguments consumed according to the
  35. // format string.
  36. //
  37. // Return Value:
  38. //
  39. // Defined as returning a ULONG, actually returns status.
  40. //
  41. //--
  42. {
  43. return 0;
  44. }
  45. #endif
  46. ULONG
  47. DbgPrintEx(
  48. IN ULONG ComponentId,
  49. IN ULONG Level,
  50. PCHAR Format,
  51. ...
  52. )
  53. //++
  54. //
  55. // Routine Description:
  56. //
  57. // This routine provides a "printf" style capability for the kernel
  58. // debugger.
  59. //
  60. // Note: control-C is consumed by the debugger and returned to
  61. // this routine as status. If status indicates control-C was
  62. // pressed, this routine breakpoints.
  63. //
  64. // Arguments:
  65. //
  66. // ComponentId - Supplies the Id of the calling component.
  67. // Level - Supplies the output filter level.
  68. // Format - printf style format string
  69. // ... - additional arguments consumed according to the
  70. // format string.
  71. //
  72. // Return Value:
  73. //
  74. // Defined as returning a ULONG, actually returns status.
  75. //
  76. //--
  77. {
  78. return 0;
  79. }
  80. ULONG
  81. vDbgPrintEx(
  82. IN ULONG ComponentId,
  83. IN ULONG Level,
  84. IN PCHAR Format,
  85. va_list arglist
  86. )
  87. //++
  88. //
  89. // Routine Description:
  90. //
  91. // This routine provides a "printf" style capability for the kernel
  92. // debugger.
  93. //
  94. // Note: control-C is consumed by the debugger and returned to
  95. // this routine as status. If status indicates control-C was
  96. // pressed, this routine breakpoints.
  97. //
  98. // Arguments:
  99. //
  100. // ComponentId - Supplies the Id of the calling component.
  101. // Level - Supplies the output filter level or mask.
  102. // Arguments - Supplies a pointer to a variable argument list.
  103. // ... - additional arguments consumed according to the
  104. // format string.
  105. //
  106. // Return Value:
  107. //
  108. // Defined as returning a ULONG, actually returns status.
  109. //
  110. //--
  111. {
  112. return 0;
  113. }
  114. ULONG
  115. vDbgPrintExWithPrefix(
  116. IN PCH Prefix,
  117. IN ULONG ComponentId,
  118. IN ULONG Level,
  119. IN PCHAR Format,
  120. va_list arglist
  121. )
  122. //++
  123. //
  124. // Routine Description:
  125. //
  126. // This routine provides a "printf" style capability for the kernel
  127. // debugger.
  128. //
  129. // Note: control-C is consumed by the debugger and returned to
  130. // this routine as status. If status indicates control-C was
  131. // pressed, this routine breakpoints.
  132. //
  133. // Arguments:
  134. //
  135. // Prefix - Supplies a pointer to a message prefix.
  136. // ComponentId - Supplies the Id of the calling component.
  137. // Level - Supplies the output filter level or mask.
  138. // Arguments - Supplies a pointer to a variable argument list.
  139. // ... - additional arguments consumed according to the
  140. // format string.
  141. //
  142. // Return Value:
  143. //
  144. // Defined as returning a ULONG, actually returns status.
  145. //
  146. //--
  147. {
  148. return 0;
  149. }
  150. VOID
  151. DbgLoadImageSymbols(
  152. IN PSTRING FileName,
  153. IN PVOID ImageBase,
  154. IN ULONG_PTR ProcessId
  155. )
  156. //++
  157. //
  158. // Routine Description:
  159. //
  160. // Tells the debugger about newly loaded symbols.
  161. //
  162. // Arguments:
  163. //
  164. // Return Value:
  165. //
  166. //--
  167. {
  168. return;
  169. }
  170. VOID
  171. DbgUnLoadImageSymbols (
  172. IN PSTRING FileName,
  173. IN PVOID ImageBase,
  174. IN ULONG_PTR ProcessId
  175. )
  176. //++
  177. //
  178. // Routine Description:
  179. //
  180. // Tells the debugger about newly unloaded symbols.
  181. //
  182. // Arguments:
  183. //
  184. // Return Value:
  185. //
  186. //--
  187. {
  188. return;
  189. }
  190. #endif