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

Function bfdebug_d32

loader/efi/include/debug.h:320–337  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

318 * @param val the 32bit dec value to output
319 */
320static inline void
321bfdebug_d32(char const *const str, uint32_t const val)
322{
323 char num[65] = {0};
324 (void)bfitoa(((uint64_t)val), num, BASE10);
325
326 serial_write("[BAREFLANK DEBUG] ");
327 serial_write(str);
328 serial_write(": ");
329 serial_write(num);
330 serial_write("\n");
331
332 console_write("[BAREFLANK DEBUG] ");
333 console_write(str);
334 console_write(": ");
335 console_write(num);
336 console_write("\r\n");
337}
338
339/**
340 * <!-- description -->

Callers 8

dump_ext_elf_filesFunction · 0.50
dump_mk_argsFunction · 0.50
dump_mk_elf_segmentsFunction · 0.50
dump_mk_stackFunction · 0.50
dump_root_vp_stateFunction · 0.50
dump_mk_stateFunction · 0.50
dump_root_vp_stateFunction · 0.50
dump_mk_stateFunction · 0.50

Calls 3

bfitoaFunction · 0.85
console_writeFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected