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

Function bfdebug_d8

loader/linux/include/debug.h:160–173  ·  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

158 * @param val the 8bit dec value to output
159 */
160static inline void
161bfdebug_d8(char const *const str, uint8_t const val)
162{
163 char num[65] = {0};
164 bfitoa(((uint64_t)val), num, BASE10);
165
166 serial_write("[BAREFLANK DEBUG] ");
167 serial_write(str);
168 serial_write(": ");
169 serial_write(num);
170 serial_write("\n");
171
172 printk(KERN_INFO "[BAREFLANK DEBUG] %s: %s\n", str, num);
173}
174
175/**
176 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected