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

Function bfdebug_ptr

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

250 * @param p the pointer to output
251 */
252static inline void
253bfdebug_ptr(char const *const str, void const *const p)
254{
255 char num[65] = {0};
256 bfitoa(((uint64_t)p), num, BASE16);
257
258 serial_write("[BAREFLANK DEBUG] ");
259 serial_write(str);
260 serial_write(": 0x");
261 serial_write(num);
262 serial_write("\n");
263
264 printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num);
265}
266
267/**
268 * <!-- description -->

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected