MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / bfdebug_x8

Function bfdebug_x8

loader/windows/include/debug.h:65–78  ·  view source on GitHub ↗

* <!-- description --> * @brief Outputs a string and an 8bit hex to the console * * <!-- inputs/outputs --> * @param str the string to output * @param val the 8bit hex value to output */

Source from the content-addressed store, hash-verified

63 * @param val the 8bit hex value to output
64 */
65static inline void
66bfdebug_x8(char const *const str, uint8_t const val)
67{
68 char num[65] = {0};
69 bfitoa(((uint64_t)val), num, BASE16);
70
71 serial_write("[BAREFLANK DEBUG] ");
72 serial_write(str);
73 serial_write(": 0x");
74 serial_write(num);
75 serial_write("\n");
76
77 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
78}
79
80/**
81 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected