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

Function bfdebug_x32

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

112 * @param val the 32bit hex value to output
113 */
114static inline void
115bfdebug_x32(char const *const str, uint32_t const val)
116{
117 char num[65] = {0};
118 bfitoa(((uint64_t)val), num, BASE16);
119
120 serial_write("[BAREFLANK DEBUG] ");
121 serial_write(str);
122 serial_write(": 0x");
123 serial_write(num);
124 serial_write("\n");
125
126 printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
127}
128
129/**
130 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected