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

Function bfdebug_x32

loader/windows/include/debug.h:111–124  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

109 * @param val the 32bit hex value to output
110 */
111static inline void
112bfdebug_x32(char const *const str, uint32_t const val)
113{
114 char num[65] = {0};
115 bfitoa(((uint64_t)val), num, BASE16);
116
117 serial_write("[BAREFLANK DEBUG] ");
118 serial_write(str);
119 serial_write(": 0x");
120 serial_write(num);
121 serial_write("\n");
122
123 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
124}
125
126/**
127 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected