Skip to content

Commit

Permalink
V4L/DVB (6805): video std is a bitmask. Better to print in hexa
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 225ba90 commit 6373678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,

*id = vfd->current_norm;

dbgarg (cmd, "value=%Lu\n", (long long unsigned) *id);
dbgarg (cmd, "value=%08Lx\n", (long long unsigned) *id);

ret=0;
break;
Expand All @@ -982,7 +982,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
{
v4l2_std_id *id = arg,norm;

dbgarg (cmd, "value=%Lu\n", (long long unsigned) *id);
dbgarg (cmd, "value=%08Lx\n", (long long unsigned) *id);

norm = (*id) & vfd->tvnorms;
if ( vfd->tvnorms && !norm) /* Check if std is supported */
Expand All @@ -1008,7 +1008,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
break;
ret=vfd->vidioc_querystd(file, fh, arg);
if (!ret)
dbgarg (cmd, "detected std=%Lu\n",
dbgarg (cmd, "detected std=%08Lx\n",
(unsigned long long)*p);
break;
}
Expand All @@ -1028,7 +1028,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
if (!ret)
dbgarg (cmd, "index=%d, name=%s, type=%d, "
"audioset=%d, "
"tuner=%d, std=%Ld, status=%d\n",
"tuner=%d, std=%08Lx, status=%d\n",
p->index,p->name,p->type,p->audioset,
p->tuner,
(unsigned long long)p->std,
Expand Down

0 comments on commit 6373678

Please sign in to comment.