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

Function bferror_d16

loader/windows/include/debug.h:404–417  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

402 * @param val the 16bit dec value to output
403 */
404static inline void
405bferror_d16(char const *const str, uint16_t const val)
406{
407 char num[65] = {0};
408 bfitoa(((uint64_t)val), num, BASE10);
409
410 serial_write("[BAREFLANK ERROR] ");
411 serial_write(str);
412 serial_write(": ");
413 serial_write(num);
414 serial_write("\n");
415
416 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, "[BAREFLANK ERROR] %s: %s\n", str, num);
417}
418
419/**
420 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected