From c7823ffc5887eb4be3a881fcb5c7afd5b7a5ffd4 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 9 Aug 2017 13:04:41 -1000 Subject: [PATCH] spi:Print only device index (mask bus in _device Print only the PX4_SPI_DEV_ID portion of the _device --- src/drivers/device/spi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;