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

Function bfdebug_d8

loader/efi/include/debug.h:266–283  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

264 * @param val the 8bit dec value to output
265 */
266static inline void
267bfdebug_d8(char const *const str, uint8_t const val)
268{
269 char num[65] = {0};
270 (void)bfitoa(((uint64_t)val), num, BASE10);
271
272 serial_write("[BAREFLANK DEBUG] ");
273 serial_write(str);
274 serial_write(": ");
275 serial_write(num);
276 serial_write("\n");
277
278 console_write("[BAREFLANK DEBUG] ");
279 console_write(str);
280 console_write(": ");
281 console_write(num);
282 console_write("\r\n");
283}
284
285/**
286 * <!-- 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