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

Function bferror_x8

loader/linux/include/debug.h:292–305  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

290 * @param val the 8bit hex value to output
291 */
292static inline void
293bferror_x8(char const *const str, uint8_t const val)
294{
295 char num[65] = {0};
296 bfitoa(((uint64_t)val), num, BASE16);
297
298 serial_write("[BAREFLANK ERROR] ");
299 serial_write(str);
300 serial_write(": 0x");
301 serial_write(num);
302 serial_write("\n");
303
304 printk(KERN_ALERT "[BAREFLANK ERROR] %s: 0x%s\n", str, num);
305}
306
307/**
308 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected