* <!-- description --> * @brief Outputs a string and an 8bit dec to the console * * <!-- inputs/outputs --> * @param str the string to output * @param val the 8bit dec value to output */
| 264 | * @param val the 8bit dec value to output |
| 265 | */ |
| 266 | static inline void |
| 267 | bfdebug_d8(char const *const str, uint8_t const val) |
| 268 | { |
| 269 | char num[65] = {0}; |
| 270 | (void)bfitoa(((uint64_t)val), num, BASE10); |
| 271 | |
| 272 | serial_write("[BAREFLANK DEBUG] "); |
| 273 | serial_write(str); |
| 274 | serial_write(": "); |
| 275 | serial_write(num); |
| 276 | serial_write("\n"); |
| 277 | |
| 278 | console_write("[BAREFLANK DEBUG] "); |
| 279 | console_write(str); |
| 280 | console_write(": "); |
| 281 | console_write(num); |
| 282 | console_write("\r\n"); |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * <!-- description --> |
nothing calls this directly
no test coverage detected