Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c18cb01c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (4148): Fix userbits debug prints



Previously, it were showing the pointer value, instead of
the setted bits.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent b20c3cf0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -486,9 +486,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
				prt_names(p->memory,v4l2_memory_names),
				prt_names(p->memory,v4l2_memory_names),
				p->m.userptr);
				p->m.userptr);
		printk ("%s: timecode= %02d:%02d:%02d type=%d, "
		printk ("%s: timecode= %02d:%02d:%02d type=%d, "
			"flags=0x%08x, frames=%d, userbits=0x%p\n",
			"flags=0x%08x, frames=%d, userbits=0x%08x\n",
				s,tc->hours,tc->minutes,tc->seconds,
				s,tc->hours,tc->minutes,tc->seconds,
				tc->type, tc->flags, tc->frames, tc->userbits);
				tc->type, tc->flags, tc->frames, *(__u32 *) tc->userbits);
		break;
		break;
	}
	}
	case VIDIOC_QUERYCAP:
	case VIDIOC_QUERYCAP:
+1 −1
Original line number Original line Diff line number Diff line
@@ -323,7 +323,7 @@ static void dbgbuf(unsigned int cmd, struct video_device *vfd,
	dbgarg2 ("timecode= %02d:%02d:%02d type=%d, "
	dbgarg2 ("timecode= %02d:%02d:%02d type=%d, "
		"flags=0x%08d, frames=%d, userbits=0x%08x\n",
		"flags=0x%08d, frames=%d, userbits=0x%08x\n",
			tc->hours,tc->minutes,tc->seconds,
			tc->hours,tc->minutes,tc->seconds,
			tc->type, tc->flags, tc->frames, (__u32) tc->userbits);
			tc->type, tc->flags, tc->frames, *(__u32 *) tc->userbits);
}
}


static inline void dbgrect(struct video_device *vfd, char *s,
static inline void dbgrect(struct video_device *vfd, char *s,