MCPcopy Create free account
hub / github.com/NullArray/WinKernel-Resources / ElamSamplePrintHex

Function ElamSamplePrintHex

Drivers/Driver-SRC/elam/elamsample.c:431–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431VOID
432ElamSamplePrintHex(
433 _In_reads_bytes_(DataSize) PVOID Data,
434 _In_ ULONG DataSize
435 )
436/*++
437
438Routine Description:
439
440 This routine prints out the supplied data in hexadecimal form.
441
442Arguments:
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
448Return 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected