summaryrefslogtreecommitdiff
path: root/v4l2-apps
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-02-28 00:25:51 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2007-02-28 00:25:51 +0100
commitdef3a3061098518446069b287d7eba281cfe0afe (patch)
treebb88900b964b51f045e5cd9a237c4df8aaf76c9d /v4l2-apps
parent48b48aad8f2170c48618958d828ea1df98a87bcd (diff)
downloadmediapointer-dvb-s2-def3a3061098518446069b287d7eba281cfe0afe.tar.gz
mediapointer-dvb-s2-def3a3061098518446069b287d7eba281cfe0afe.tar.bz2
Add VIDIOC_G_CHIP_IDENT to various i2c modules
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps')
-rw-r--r--v4l2-apps/util/v4l2-dbg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/v4l2-apps/util/v4l2-dbg.cpp b/v4l2-apps/util/v4l2-dbg.cpp
index 4ed2c0e3c..6f373281e 100644
--- a/v4l2-apps/util/v4l2-dbg.cpp
+++ b/v4l2-apps/util/v4l2-dbg.cpp
@@ -222,9 +222,9 @@ static void print_chip(struct v4l2_chip_ident *chip)
}
}
if (name)
- printf("Chip %s, revision 0x%08x\n", name, chip->revision);
+ printf("%-10s revision 0x%08x\n", name, chip->revision);
else
- printf("Chip %d, revision 0x%08x\n", chip->ident, chip->revision);
+ printf("%-10d revision 0x%08x\n", chip->ident, chip->revision);
}
static int doioctl(int fd, int request, void *parm, const char *name)
@@ -463,7 +463,7 @@ int main(int argc, char **argv)
for (i = 0; i < 128; i++) {
chip_id.match_chip = i;
if (doioctl(fd, VIDIOC_G_CHIP_IDENT, &chip_id, "VIDIOC_G_CHIP_IDENT") == 0 && chip_id.ident) {
- printf("I2C 0x%02x: ", i);
+ printf("i2c 0x%02x: ", i);
print_chip(&chip_id);
}
}