* <!-- 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 */
| 66 | * @param val the 8bit hex value to output |
| 67 | */ |
| 68 | static inline void |
| 69 | bfdebug_x8(char const *const str, uint8_t const val) |
| 70 | { |
| 71 | char num[65] = {0}; |
| 72 | bfitoa(((uint64_t)val), num, BASE16); |
| 73 | |
| 74 | serial_write("[BAREFLANK DEBUG] "); |
| 75 | serial_write(str); |
| 76 | serial_write(": 0x"); |
| 77 | serial_write(num); |
| 78 | serial_write("\n"); |
| 79 | |
| 80 | printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * <!-- description --> |
nothing calls this directly
no test coverage detected