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

Function bferror_ptr

loader/efi/include/debug.h:636–653  ·  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

634 * @param p the pointer value to output
635 */
636static inline void
637bferror_ptr(char const *const str, void const *const p)
638{
639 char num[65] = {0};
640 (void)bfitoa(((uint64_t)p), num, BASE16);
641
642 serial_write("[BAREFLANK ERROR] ");
643 serial_write(str);
644 serial_write(": 0x");
645 serial_write(num);
646 serial_write("\n");
647
648 console_write("[BAREFLANK ERROR] ");
649 console_write(str);
650 console_write(": 0x");
651 console_write(num);
652 console_write("\r\n");
653}
654
655#endif

Callers

nothing calls this directly

Calls 3

bfitoaFunction · 0.85
console_writeFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected