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

Function bfdebug_x16

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

89 * @param val the 16bit hex value to output
90 */
91static inline void
92bfdebug_x16(char const *const str, uint16_t const val)
93{
94 char num[65] = {0};
95 bfitoa(((uint64_t)val), num, BASE16);
96
97 serial_write("[BAREFLANK DEBUG] ");
98 serial_write(str);
99 serial_write(": 0x");
100 serial_write(num);
101 serial_write("\n");
102
103 printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
104}
105
106/**
107 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected