Skip to content

Commit

Permalink
dma-buf: Use %zu for printing sizeof
Browse files Browse the repository at this point in the history
Use the %zu format specifier for a size_t returned by sizeof.

Reported-by: kbuild-all@01.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190819195740.27608-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Aug 20, 2019
1 parent 01b45d3 commit ea4e537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma-buf/st-dma-fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ int dma_fence(void)
};
int ret;

pr_info("sizeof(dma_fence)=%lu\n", sizeof(struct dma_fence));
pr_info("sizeof(dma_fence)=%zu\n", sizeof(struct dma_fence));

slab_fences = KMEM_CACHE(mock_fence,
SLAB_TYPESAFE_BY_RCU |
Expand Down

0 comments on commit ea4e537

Please sign in to comment.