drivers: spi_context: fix some LOG_DBG warnings

This casts the char * buffers to void * before giving them to the
LOG_DBG function to fix a warning at runtime.

Signed-off-by: Gaël PORTAY <gael.portay@gmail.com>
This commit is contained in:
Gaël PORTAY 2022-10-18 10:05:59 +02:00 committed by Marti Bolivar
commit ffed8388e7

View file

@ -312,7 +312,8 @@ void spi_context_buffers_setup(struct spi_context *ctx,
" tx buf/len %p/%zu, rx buf/len %p/%zu",
ctx->current_tx, ctx->tx_count,
ctx->current_rx, ctx->rx_count,
ctx->tx_buf, ctx->tx_len, ctx->rx_buf, ctx->rx_len);
(void *)ctx->tx_buf, ctx->tx_len,
(void *)ctx->rx_buf, ctx->rx_len);
}
static ALWAYS_INLINE
@ -340,7 +341,7 @@ void spi_context_update_tx(struct spi_context *ctx, uint8_t dfs, uint32_t len)
ctx->tx_buf += dfs * len;
}
LOG_DBG("tx buf/len %p/%zu", ctx->tx_buf, ctx->tx_len);
LOG_DBG("tx buf/len %p/%zu", (void *)ctx->tx_buf, ctx->tx_len);
}
static ALWAYS_INLINE
@ -387,7 +388,7 @@ void spi_context_update_rx(struct spi_context *ctx, uint8_t dfs, uint32_t len)
ctx->rx_buf += dfs * len;
}
LOG_DBG("rx buf/len %p/%zu", ctx->rx_buf, ctx->rx_len);
LOG_DBG("rx buf/len %p/%zu", (void *)ctx->rx_buf, ctx->rx_len);
}
static ALWAYS_INLINE