From 825958d3e27b2f203057bfe01f7591f800d4c741 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 20 Jan 2017 09:05:57 +0100 Subject: [PATCH] sys/auto_init: unified logging for mma8x5x --- sys/auto_init/saul/auto_init_mma8x5x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/auto_init/saul/auto_init_mma8x5x.c b/sys/auto_init/saul/auto_init_mma8x5x.c index 9313acbbef..8543631afc 100644 --- a/sys/auto_init/saul/auto_init_mma8x5x.c +++ b/sys/auto_init/saul/auto_init_mma8x5x.c @@ -53,8 +53,10 @@ extern saul_driver_t mma8x5x_saul_driver; void auto_init_mma8x5x(void) { for (unsigned i = 0; i < MMA8X5X_NUM; i++) { + LOG_DEBUG("[auto_init_saul] initializing mma8x5x #%u\n", i); + if (mma8x5x_init(&mma8x5x_devs[i], &mma8x5x_params[i]) != MMA8X5X_OK) { - LOG_ERROR("Unable to initialize MMA8x5x sensor #%i\n", i); + LOG_ERROR("[auto_init_saul] error initializing mma8x5x #%u\n", i); return; }