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

Function bferror_d16

loader/linux/include/debug.h:407–420  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

405 * @param val the 16bit dec value to output
406 */
407static inline void
408bferror_d16(char const *const str, uint16_t const val)
409{
410 char num[65] = {0};
411 bfitoa(((uint64_t)val), num, BASE10);
412
413 serial_write("[BAREFLANK ERROR] ");
414 serial_write(str);
415 serial_write(": ");
416 serial_write(num);
417 serial_write("\n");
418
419 printk(KERN_ALERT "[BAREFLANK ERROR] %s: %s\n", str, num);
420}
421
422/**
423 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected