diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c b/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c index 3b21d9c6ae..7d29668502 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c @@ -307,7 +307,7 @@ static int stm32_xbee_devsetup(FAR struct stm32_priv_s *priv) xbee = xbee_init(spi, &priv->dev); if (xbee == NULL) { - wlerr("ERROR: Failed to initialize XBee driver%d\n", priv->dev); + wlerr("ERROR: Failed to initialize XBee driver%d\n", priv->spidev); return -ENODEV; }