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

Function bferror_x32

loader/linux/include/debug.h:338–351  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

336 * @param val the 32bit hex value to output
337 */
338static inline void
339bferror_x32(char const *const str, uint32_t const val)
340{
341 char num[65] = {0};
342 bfitoa(((uint64_t)val), num, BASE16);
343
344 serial_write("[BAREFLANK ERROR] ");
345 serial_write(str);
346 serial_write(": 0x");
347 serial_write(num);
348 serial_write("\n");
349
350 printk(KERN_ALERT "[BAREFLANK ERROR] %s: 0x%s\n", str, num);
351}
352
353/**
354 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected