Skip to content

Commit e1da930

Browse files
dillon-mingregkh
authored andcommitted
media: videobuf2: Fix the size printk format
[ Upstream commit c9ee220 ] Since the type of parameter size is unsigned long, it should printk by %lu, instead of %ld, fix it. Fixes: 7952be9 ("media: drivers/media/common/videobuf2: rename from videobuf") Signed-off-by: Dillon Min <dillon.minfei@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 90807ab commit e1da930

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/media/common/videobuf2/videobuf2-dma-contig.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs,
150150
buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr,
151151
GFP_KERNEL | gfp_flags, buf->attrs);
152152
if (!buf->cookie) {
153-
dev_err(dev, "dma_alloc_coherent of size %ld failed\n", size);
153+
dev_err(dev, "dma_alloc_coherent of size %lu failed\n", size);
154154
kfree(buf);
155155
return ERR_PTR(-ENOMEM);
156156
}
@@ -196,9 +196,9 @@ static int vb2_dc_mmap(void *buf_priv, struct vm_area_struct *vma)
196196

197197
vma->vm_ops->open(vma);
198198

199-
pr_debug("%s: mapped dma addr 0x%08lx at 0x%08lx, size %ld\n",
200-
__func__, (unsigned long)buf->dma_addr, vma->vm_start,
201-
buf->size);
199+
pr_debug("%s: mapped dma addr 0x%08lx at 0x%08lx, size %lu\n",
200+
__func__, (unsigned long)buf->dma_addr, vma->vm_start,
201+
buf->size);
202202

203203
return 0;
204204
}

0 commit comments

Comments
 (0)