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

Function bferror_ptr

loader/linux/include/debug.h:476–489  ·  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

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

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected