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

Function bfdebug_ptr

loader/efi/include/debug.h:374–391  ·  view source on GitHub ↗

* <!-- description --> * @brief Outputs a string and an pointer to the console * * <!-- inputs/outputs --> * @param str the string to output * @param p the pointer to output */

Source from the content-addressed store, hash-verified

372 * @param p the pointer to output
373 */
374static inline void
375bfdebug_ptr(char const *const str, void const *const p)
376{
377 char num[65] = {0};
378 (void)bfitoa(((uint64_t)p), num, BASE16);
379
380 serial_write("[BAREFLANK DEBUG] ");
381 serial_write(str);
382 serial_write(": 0x");
383 serial_write(num);
384 serial_write("\n");
385
386 console_write("[BAREFLANK DEBUG] ");
387 console_write(str);
388 console_write(": 0x");
389 console_write(num);
390 console_write("\r\n");
391}
392
393/**
394 * <!-- description -->

Callers 13

dump_mk_elf_fileFunction · 0.50
dump_mk_root_page_tableFunction · 0.50
dump_mk_huge_poolFunction · 0.50
dump_mk_argsFunction · 0.50
dump_mk_elf_segmentsFunction · 0.50
dump_mk_page_poolFunction · 0.50
dump_mk_debug_ringFunction · 0.50
dump_mk_stackFunction · 0.50
dump_root_vp_stateFunction · 0.50
dump_mk_stateFunction · 0.50
dump_mk_code_aliasesFunction · 0.50
dump_root_vp_stateFunction · 0.50

Calls 3

bfitoaFunction · 0.85
console_writeFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected