* <!-- 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 */
| 634 | * @param p the pointer value to output |
| 635 | */ |
| 636 | static inline void |
| 637 | bferror_ptr(char const *const str, void const *const p) |
| 638 | { |
| 639 | char num[65] = {0}; |
| 640 | (void)bfitoa(((uint64_t)p), num, BASE16); |
| 641 | |
| 642 | serial_write("[BAREFLANK ERROR] "); |
| 643 | serial_write(str); |
| 644 | serial_write(": 0x"); |
| 645 | serial_write(num); |
| 646 | serial_write("\n"); |
| 647 | |
| 648 | console_write("[BAREFLANK ERROR] "); |
| 649 | console_write(str); |
| 650 | console_write(": 0x"); |
| 651 | console_write(num); |
| 652 | console_write("\r\n"); |
| 653 | } |
| 654 | |
| 655 | #endif |
nothing calls this directly
no test coverage detected