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

Function bfdebug_d16

loader/efi/include/debug.h:293–310  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

291 * @param val the 16bit dec value to output
292 */
293static inline void
294bfdebug_d16(char const *const str, uint16_t const val)
295{
296 char num[65] = {0};
297 (void)bfitoa(((uint64_t)val), num, BASE10);
298
299 serial_write("[BAREFLANK DEBUG] ");
300 serial_write(str);
301 serial_write(": ");
302 serial_write(num);
303 serial_write("\n");
304
305 console_write("[BAREFLANK DEBUG] ");
306 console_write(str);
307 console_write(": ");
308 console_write(num);
309 console_write("\r\n");
310}
311
312/**
313 * <!-- description -->

Callers

nothing calls this directly

Calls 3

bfitoaFunction · 0.85
console_writeFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected