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

Function bfdebug_d64

loader/efi/include/debug.h:347–364  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

345 * @param val the 64bit dec value to output
346 */
347static inline void
348bfdebug_d64(char const *const str, uint64_t const val)
349{
350 char num[65] = {0};
351 (void)bfitoa(((uint64_t)val), num, BASE10);
352
353 serial_write("[BAREFLANK DEBUG] ");
354 serial_write(str);
355 serial_write(": ");
356 serial_write(num);
357 serial_write("\n");
358
359 console_write("[BAREFLANK DEBUG] ");
360 console_write(str);
361 console_write(": ");
362 console_write(num);
363 console_write("\r\n");
364}
365
366/**
367 * <!-- 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