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

Function bfdebug_x64

loader/windows/include/debug.h:134–147  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

132 * @param val the 64bit hex value to output
133 */
134static inline void
135bfdebug_x64(char const *const str, uint64_t const val)
136{
137 char num[65] = {0};
138 bfitoa(((uint64_t)val), num, BASE16);
139
140 serial_write("[BAREFLANK DEBUG] ");
141 serial_write(str);
142 serial_write(": 0x");
143 serial_write(num);
144 serial_write("\n");
145
146 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
147}
148
149/**
150 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected