* <!-- description --> * @brief Outputs a string and an 16bit hex to the console * * <!-- inputs/outputs --> * @param str the string to output * @param val the 16bit hex value to output */
| 313 | * @param val the 16bit hex value to output |
| 314 | */ |
| 315 | static inline void |
| 316 | bferror_x16(char const *const str, uint16_t const val) |
| 317 | { |
| 318 | char num[65] = {0}; |
| 319 | bfitoa(((uint64_t)val), num, BASE16); |
| 320 | |
| 321 | serial_write("[BAREFLANK ERROR] "); |
| 322 | serial_write(str); |
| 323 | serial_write(": 0x"); |
| 324 | serial_write(num); |
| 325 | serial_write("\n"); |
| 326 | |
| 327 | printk(KERN_ALERT "[BAREFLANK ERROR] %s: 0x%s\n", str, num); |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * <!-- description --> |
nothing calls this directly
no test coverage detected