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

Function bferror_ptr

loader/windows/include/debug.h:473–486  ·  view source on GitHub ↗

* <!-- description --> * @brief Outputs a string and an pointer to the console * * <!-- inputs/outputs --> * @param str the string to output * @param p the pointer value to output */

Source from the content-addressed store, hash-verified

471 * @param p the pointer value to output
472 */
473static inline void
474bferror_ptr(char const *const str, void const *const p)
475{
476 char num[65] = {0};
477 bfitoa(((uint64_t)p), num, BASE16);
478
479 serial_write("[BAREFLANK ERROR] ");
480 serial_write(str);
481 serial_write(": 0x");
482 serial_write(num);
483 serial_write("\n");
484
485 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, "[BAREFLANK ERROR] %s: %s\n", str, num);
486}
487
488#endif

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected