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

Function bfdebug_x8

loader/linux/include/debug.h:68–81  ·  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

66 * @param val the 8bit hex value to output
67 */
68static inline void
69bfdebug_x8(char const *const str, uint8_t const val)
70{
71 char num[65] = {0};
72 bfitoa(((uint64_t)val), num, BASE16);
73
74 serial_write("[BAREFLANK DEBUG] ");
75 serial_write(str);
76 serial_write(": 0x");
77 serial_write(num);
78 serial_write("\n");
79
80 printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
81}
82
83/**
84 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected