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

Function bferror_d64

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

607 * @param val the 64bit dec value to output
608 */
609static inline void
610bferror_d64(char const *const str, uint64_t const val)
611{
612 char num[65] = {0};
613 (void)bfitoa(((uint64_t)val), num, BASE10);
614
615 serial_write("[BAREFLANK ERROR] ");
616 serial_write(str);
617 serial_write(": ");
618 serial_write(num);
619 serial_write("\n");
620
621 console_write("[BAREFLANK ERROR] ");
622 console_write(str);
623 console_write(": ");
624 console_write(num);
625 console_write("\r\n");
626}
627
628/**
629 * <!-- description -->

Callers

nothing calls this directly

Calls 3

bfitoaFunction · 0.85
console_writeFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected