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

Function bferror_d64

loader/linux/include/debug.h:453–466  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

451 * @param val the 64bit dec value to output
452 */
453static inline void
454bferror_d64(char const *const str, uint64_t const val)
455{
456 char num[65] = {0};
457 bfitoa(((uint64_t)val), num, BASE10);
458
459 serial_write("[BAREFLANK ERROR] ");
460 serial_write(str);
461 serial_write(": ");
462 serial_write(num);
463 serial_write("\n");
464
465 printk(KERN_ALERT "[BAREFLANK ERROR] %s: %s\n", str, num);
466}
467
468/**
469 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected