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

Function bfdebug_d16

loader/linux/include/debug.h:183–196  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

181 * @param val the 16bit dec value to output
182 */
183static inline void
184bfdebug_d16(char const *const str, uint16_t const val)
185{
186 char num[65] = {0};
187 bfitoa(((uint64_t)val), num, BASE10);
188
189 serial_write("[BAREFLANK DEBUG] ");
190 serial_write(str);
191 serial_write(": ");
192 serial_write(num);
193 serial_write("\n");
194
195 printk(KERN_INFO "[BAREFLANK DEBUG] %s: %s\n", str, num);
196}
197
198/**
199 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected