| 314 | } |
| 315 | |
| 316 | VOID |
| 317 | DebugMsg ( |
| 318 | CHAR8 *FileName, |
| 319 | UINT32 LineNumber, |
| 320 | UINT64 MsgLevel, |
| 321 | CHAR8 *Text, |
| 322 | CHAR8 *MsgFmt, |
| 323 | ... |
| 324 | ) |
| 325 | /*++ |
| 326 | |
| 327 | Routine Description: |
| 328 | Print a Debug message. |
| 329 | |
| 330 | Arguments: |
| 331 | FileName - typically the name of the utility printing the debug message, but |
| 332 | can be the name of a file being parsed. |
| 333 | |
| 334 | LineNumber - the line number in FileName (parsers) |
| 335 | |
| 336 | MsgLevel - Debug message print level (0~9) |
| 337 | |
| 338 | Text - the text in question (parsers) |
| 339 | |
| 340 | MsgFmt - the format string for the debug message. Can contain formatting |
| 341 | controls for use with varargs. |
| 342 | |
| 343 | Returns: |
| 344 | None. |
| 345 | |
| 346 | --*/ |
| 347 | { |
| 348 | va_list List; |
| 349 | // |
| 350 | // If the debug level is less than current print level, then do nothing. |
| 351 | // |
| 352 | if (MsgLevel < mPrintLogLevel) { |
| 353 | return ; |
| 354 | } |
| 355 | |
| 356 | va_start (List, MsgFmt); |
| 357 | PrintMessage ("DEBUG", FileName, LineNumber, 0, Text, MsgFmt, List); |
| 358 | va_end (List); |
| 359 | } |
| 360 | |
| 361 | VOID |
| 362 | PrintMessage ( |