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

Function bfdebug_d16

loader/windows/include/debug.h:180–193  ·  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

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

Callers

nothing calls this directly

Calls 2

bfitoaFunction · 0.85
serial_writeFunction · 0.50

Tested by

no test coverage detected