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

Function bferror_x16

loader/linux/include/debug.h:315–328  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

313 * @param val the 16bit hex value to output
314 */
315static inline void
316bferror_x16(char const *const str, uint16_t const val)
317{
318 char num[65] = {0};
319 bfitoa(((uint64_t)val), num, BASE16);
320
321 serial_write("[BAREFLANK ERROR] ");
322 serial_write(str);
323 serial_write(": 0x");
324 serial_write(num);
325 serial_write("\n");
326
327 printk(KERN_ALERT "[BAREFLANK ERROR] %s: 0x%s\n", str, num);
328}
329
330/**
331 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected