* <!-- description --> * @brief Outputs a string and an 8bit hex to the console * * <!-- inputs/outputs --> * @param str the string to output * @param val the 8bit hex value to output */
| 290 | * @param val the 8bit hex value to output |
| 291 | */ |
| 292 | static inline void |
| 293 | bferror_x8(char const *const str, uint8_t const val) |
| 294 | { |
| 295 | char num[65] = {0}; |
| 296 | bfitoa(((uint64_t)val), num, BASE16); |
| 297 | |
| 298 | serial_write("[BAREFLANK ERROR] "); |
| 299 | serial_write(str); |
| 300 | serial_write(": 0x"); |
| 301 | serial_write(num); |
| 302 | serial_write("\n"); |
| 303 | |
| 304 | printk(KERN_ALERT "[BAREFLANK ERROR] %s: 0x%s\n", str, num); |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * <!-- description --> |
nothing calls this directly
no test coverage detected