dma-buf: Use %zu for printing sizeof
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Aug 2019 19:57:40 +0000 (20:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 09:13:42 +0000 (10:13 +0100)
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
drivers/dma-buf/st-dma-fence.c

index 3d69405952aa8403f5ab3af1deb74c47c7ffe4e3..6fbae6bf65766be08bf1bf2f6d26f60148c387f0 100644 (file)
@@ -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 |