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

Function bfdebug_x16

loader/windows/include/debug.h:88–101  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

86 * @param val the 16bit hex value to output
87 */
88static inline void
89bfdebug_x16(char const *const str, uint16_t const val)
90{
91 char num[65] = {0};
92 bfitoa(((uint64_t)val), num, BASE16);
93
94 serial_write("[BAREFLANK DEBUG] ");
95 serial_write(str);
96 serial_write(": 0x");
97 serial_write(num);
98 serial_write("\n");
99
100 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
101}
102
103/**
104 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected