From: Philipp Zabel Date: Wed, 12 Jun 2019 09:39:07 +0000 (-0400) Subject: media: hantro: print video device name in addition to device node X-Git-Tag: v5.3-rc1~170^2~164 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=0b675962d9395269ab2a808a08dabce5249de7b2;p=linux.git media: hantro: print video device name in addition to device node It can be helpful to know which video device was registered at which device node. Signed-off-by: Philipp Zabel Reviewed-by: Boris Brezillon Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index d325f63c7412..0eadcc530e63 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -607,7 +607,8 @@ static int hantro_add_func(struct hantro_dev *vpu, unsigned int funcid) goto err_unreg_dev; } - v4l2_info(&vpu->v4l2_dev, "registered as /dev/video%d\n", vfd->num); + v4l2_info(&vpu->v4l2_dev, "registered %s as /dev/video%d\n", vfd->name, + vfd->num); return 0;