Skip to content

Commit

Permalink
host: Fix compilation error with verbose traces enabled
Browse files Browse the repository at this point in the history
src/audio/host.c: In function 'host_dma_cb':
src/audio/host.c:210:46: error: initialization of
'unsigned int' from 'const struct comp_driver *' makes integer from
pointer without a cast [-Werror=int-conversion]
  comp_cl_dbg(&comp_host, "host_dma_cb() %p", &comp_host);

This happens because our tracing system is limited to integer types
for parameters.

Fixes: a87b908 ("trace: component: use err,info,dbg macros")
Suggested-by: Paul Olaru <paul.olaru@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta authored and lgirdwood committed Feb 20, 2020
1 parent 22de787 commit c35e1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static void host_dma_cb(void *arg, enum notify_id type, void *data)
struct host_data *hd = comp_get_drvdata(dev);
uint32_t bytes = next->elem.size;

comp_cl_dbg(&comp_host, "host_dma_cb() %p", &comp_host);
comp_cl_dbg(&comp_host, "host_dma_cb() %p", (uintptr_t)&comp_host);

/* update position */
host_update_position(dev, bytes);
Expand Down

0 comments on commit c35e1aa

Please sign in to comment.