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

Function bferror_d8

loader/windows/include/debug.h:381–394  ·  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

379 * @param val the 8bit dec value to output
380 */
381static inline void
382bferror_d8(char const *const str, uint8_t const val)
383{
384 char num[65] = {0};
385 bfitoa(((uint64_t)val), num, BASE10);
386
387 serial_write("[BAREFLANK ERROR] ");
388 serial_write(str);
389 serial_write(": ");
390 serial_write(num);
391 serial_write("\n");
392
393 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, "[BAREFLANK ERROR] %s: %s\n", str, num);
394}
395
396/**
397 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected