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

Function bfdebug_x64

loader/linux/include/debug.h:137–150  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

135 * @param val the 64bit hex value to output
136 */
137static inline void
138bfdebug_x64(char const *const str, uint64_t const val)
139{
140 char num[65] = {0};
141 bfitoa(((uint64_t)val), num, BASE16);
142
143 serial_write("[BAREFLANK DEBUG] ");
144 serial_write(str);
145 serial_write(": 0x");
146 serial_write(num);
147 serial_write("\n");
148
149 printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
150}
151
152/**
153 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected