diff options
Diffstat (limited to 'slip.c')
-rw-r--r-- | slip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ #if HAL_SLIP_DEBUG #include <stdio.h> -#define check(op) do { const hal_error_t _err_ = (op); if (_err_ != HAL_OK) { printf("%s returned %d (%s)\n", #op, _err_, hal_error_string(_err_)); return _err_; } } while (0) +#define check(op) do { const hal_error_t _err_ = (op); if (_err_ != HAL_OK) { hal_log(HAL_LOG_DEBUG, "%s returned %d (%s)", #op, _err_, hal_error_string(_err_)); return _err_; } } while (0) #else #define check(op) do { const hal_error_t _err_ = (op); if (_err_ != HAL_OK) { return _err_; } } while (0) #endif |