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

Function bfdebug_d8

loader/windows/include/debug.h:157–170  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155 * @param val the 8bit dec value to output
156 */
157static inline void
158bfdebug_d8(char const *const str, uint8_t const val)
159{
160 char num[65] = {0};
161 bfitoa(((uint64_t)val), num, BASE10);
162
163 serial_write("[BAREFLANK DEBUG] ");
164 serial_write(str);
165 serial_write(": ");
166 serial_write(num);
167 serial_write("\n");
168
169 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "[BAREFLANK DEBUG] %s: %s\n", str, num);
170}
171
172/**
173 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected