From 31003bf3236e1ebab5cc6ad6f2bfe1c93328be02 Mon Sep 17 00:00:00 2001 From: Firas Hamdi Date: Tue, 14 May 2024 10:13:41 +0200 Subject: [PATCH] tests/drivers/candev: add debug output concerning errors --- tests/drivers/candev/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/drivers/candev/main.c b/tests/drivers/candev/main.c index 48f778813a..6376d0a96d 100644 --- a/tests/drivers/candev/main.c +++ b/tests/drivers/candev/main.c @@ -256,12 +256,15 @@ static void _can_event_callback(candev_t *dev, candev_event_t event, void *arg) DEBUG("_can_event: CANDEV_EVENT_RX_ERROR\n"); break; case CANDEV_EVENT_BUS_OFF: + DEBUG("_can_event: CANDEV_EVENT_BUS_OFF\n"); dev->state = CAN_STATE_BUS_OFF; break; case CANDEV_EVENT_ERROR_PASSIVE: + DEBUG("_can_event: CANDEV_EVENT_ERROR_PASSIVE\n"); dev->state = CAN_STATE_ERROR_PASSIVE; break; case CANDEV_EVENT_ERROR_WARNING: + DEBUG("_can_event: CANDEV_EVENT_ERROR_WARNING\n"); dev->state = CAN_STATE_ERROR_WARNING; break; default: