[media] videobuf2-dma-sg: Fix typo on debug message
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Wed, 6 Nov 2013 18:48:38 +0000 (15:48 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 9 Dec 2013 13:41:11 +0000 (11:41 -0200)
num_pages_from_user and buf->num_pages were swapped.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-dma-sg.c

index 2f860543912cd1c3f5dd4f286705b2c8b208dc37..c13bf95f9f5304a838950538729ae106c30d44dd 100644 (file)
@@ -200,7 +200,7 @@ static void *vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr,
 userptr_fail_alloc_table_from_pages:
 userptr_fail_get_user_pages:
        dprintk(1, "get_user_pages requested/got: %d/%d]\n",
-              num_pages_from_user, buf->num_pages);
+               buf->num_pages, num_pages_from_user);
        while (--num_pages_from_user >= 0)
                put_page(buf->pages[num_pages_from_user]);
        kfree(buf->pages);