diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-24 17:50:33 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-26 05:50:58 -0400 |
commit | f1a0c1858c63888511811a5b5661bd4d08941028 (patch) | |
tree | 0ec6e088dd0e85411ceee41e18f46fcf78b48e13 /drivers/media | |
parent | 5b31d9e036c1e18141b0458e89ce78e966a0d590 (diff) |
[media] s5p_mfc_opr: Fix warnings
CC drivers/media//platform/s5p-mfc/s5p_mfc_opr.o
drivers/media//platform/s5p-mfc/s5p_mfc_opr.c: In function ‘s5p_mfc_alloc_priv_buf’:
drivers/media//platform/s5p-mfc/s5p_mfc_opr.c:44:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
mfc_debug(3, "Allocating priv: %d\n", b->size);
^
drivers/media//platform/s5p-mfc/s5p_mfc_opr.c:53:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
mfc_debug(3, "Allocated addr %p %08x\n", b->virt, b->dma);
^
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c index c9a227428e6a..00a1d8b2a8c2 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | |||
@@ -41,7 +41,7 @@ int s5p_mfc_alloc_priv_buf(struct device *dev, | |||
41 | struct s5p_mfc_priv_buf *b) | 41 | struct s5p_mfc_priv_buf *b) |
42 | { | 42 | { |
43 | 43 | ||
44 | mfc_debug(3, "Allocating priv: %d\n", b->size); | 44 | mfc_debug(3, "Allocating priv: %zu\n", b->size); |
45 | 45 | ||
46 | b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); | 46 | b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); |
47 | 47 | ||
@@ -50,7 +50,7 @@ int s5p_mfc_alloc_priv_buf(struct device *dev, | |||
50 | return -ENOMEM; | 50 | return -ENOMEM; |
51 | } | 51 | } |
52 | 52 | ||
53 | mfc_debug(3, "Allocated addr %p %08x\n", b->virt, b->dma); | 53 | mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); |
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||