* <!-- 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 */
| 89 | * @param val the 16bit hex value to output |
| 90 | */ |
| 91 | static inline void |
| 92 | bfdebug_x16(char const *const str, uint16_t const val) |
| 93 | { |
| 94 | char num[65] = {0}; |
| 95 | bfitoa(((uint64_t)val), num, BASE16); |
| 96 | |
| 97 | serial_write("[BAREFLANK DEBUG] "); |
| 98 | serial_write(str); |
| 99 | serial_write(": 0x"); |
| 100 | serial_write(num); |
| 101 | serial_write("\n"); |
| 102 | |
| 103 | printk(KERN_INFO "[BAREFLANK DEBUG] %s: 0x%s\n", str, num); |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * <!-- description --> |
nothing calls this directly
no test coverage detected