diff --git a/src/drivers/device/spi.cpp b/src/drivers/device/spi.cpp index 98bf0db6d1..9459bc2cdd 100644 --- a/src/drivers/device/spi.cpp +++ b/src/drivers/device/spi.cpp @@ -124,7 +124,7 @@ SPI::init() } /* tell the workd where we are */ - DEVICE_LOG("on SPI bus %d at %d (%u KHz)", _bus, _device, _frequency / 1000); + DEVICE_LOG("on SPI bus %d at %d (%u KHz)", _bus, PX4_SPI_DEV_ID(_device), _frequency / 1000); out: return ret;