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

Function bferror_d8

loader/linux/include/debug.h:384–397  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

382 * @param val the 8bit dec value to output
383 */
384static inline void
385bferror_d8(char const *const str, uint8_t const val)
386{
387 char num[65] = {0};
388 bfitoa(((uint64_t)val), num, BASE10);
389
390 serial_write("[BAREFLANK ERROR] ");
391 serial_write(str);
392 serial_write(": ");
393 serial_write(num);
394 serial_write("\n");
395
396 printk(KERN_ALERT "[BAREFLANK ERROR] %s: %s\n", str, num);
397}
398
399/**
400 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected