| 429 | } |
| 430 | |
| 431 | VOID |
| 432 | ElamSamplePrintHex( |
| 433 | _In_reads_bytes_(DataSize) PVOID Data, |
| 434 | _In_ ULONG DataSize |
| 435 | ) |
| 436 | /*++ |
| 437 | |
| 438 | Routine Description: |
| 439 | |
| 440 | This routine prints out the supplied data in hexadecimal form. |
| 441 | |
| 442 | Arguments: |
| 443 | |
| 444 | Data - Supplies a pointer to the data to be printed. |
| 445 | |
| 446 | DataSize - Supplies the length in bytes of the data to be printed. |
| 447 | |
| 448 | Return Value: |
| 449 | |
| 450 | None. |
| 451 | |
| 452 | --*/ |
| 453 | { |
| 454 | PCUCHAR Bytes; |
| 455 | ULONG Index; |
| 456 | |
| 457 | for (Bytes = (PCUCHAR)Data, Index = 0; Index < DataSize; Index++) |
| 458 | { |
| 459 | if ((Index & 15) == 0) |
| 460 | { |
| 461 | DbgPrintEx(DPFLTR_IHVDRIVER_ID, |
| 462 | ELAMSAMPLE_TRACE_LEVEL, |
| 463 | "\r\nElamSample: "); |
| 464 | } |
| 465 | |
| 466 | DbgPrintEx(DPFLTR_IHVDRIVER_ID, |
| 467 | ELAMSAMPLE_TRACE_LEVEL, |
| 468 | "%02x ", |
| 469 | Bytes[Index]); |
| 470 | } |
| 471 | |
| 472 | DbgPrintEx(DPFLTR_IHVDRIVER_ID, ELAMSAMPLE_TRACE_LEVEL, "\r\n"); |
| 473 | } |
no outgoing calls
no test coverage detected