* <!-- description --> * @brief Outputs a string and an pointer to the console * * <!-- inputs/outputs --> * @param str the string to output * @param p the pointer value to output */
| 474 | * @param p the pointer value to output |
| 475 | */ |
| 476 | static inline void |
| 477 | bferror_ptr(char const *const str, void const *const p) |
| 478 | { |
| 479 | char num[65] = {0}; |
| 480 | bfitoa(((uint64_t)p), num, BASE16); |
| 481 | |
| 482 | serial_write("[BAREFLANK ERROR] "); |
| 483 | serial_write(str); |
| 484 | serial_write(": 0x"); |
| 485 | serial_write(num); |
| 486 | serial_write("\n"); |
| 487 | |
| 488 | printk(KERN_ALERT "[BAREFLANK ERROR] %s: %s\n", str, num); |
| 489 | } |
| 490 | |
| 491 | #endif |
nothing calls this directly
no test coverage detected