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:
parent
a45caf868f
commit
ffed8388e7
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue