* <!-- 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 */
| 250 | * @param p the pointer to output |
| 251 | */ |
| 252 | static inline void |
| 253 | bfdebug_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 --> |
nothing calls this directly
no test coverage detected