From 9bd8b0e20b9653b212a42dbb9e71f4e09f421dbe Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 31 Aug 2008 09:56:36 +0200 Subject: v4l2-dbg: simplify usage message From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-apps/util/v4l2-dbg.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/v4l2-apps/util/v4l2-dbg.cpp b/v4l2-apps/util/v4l2-dbg.cpp index 2561f42b2..8cf30c4f7 100644 --- a/v4l2-apps/util/v4l2-dbg.cpp +++ b/v4l2-apps/util/v4l2-dbg.cpp @@ -101,28 +101,28 @@ static struct option long_options[] = { static void usage(void) { - printf("Usage:\n"); - printf(" -D, --info show driver info [VIDIOC_QUERYCAP]\n"); - printf(" -d, --device= use device instead of /dev/video0\n"); - printf(" if is a single digit, then /dev/video is used\n"); - printf(" -h, --help display this help message\n"); - printf(" --verbose turn on verbose ioctl error reporting.\n"); - printf(" -R, --list-registers=type=,chip=[,min=,max=] \n"); - printf(" dump registers from to [VIDIOC_DBG_G_REGISTER]\n"); - printf(" -r, --set-register=type=,chip=,reg=,val=\n"); - printf(" set the register [VIDIOC_DBG_S_REGISTER]\n"); - printf(" -C, --scan-chip-idents\n"); - printf(" Scan the available host and i2c chips [VIDIOC_G_CHIP_IDENT]\n"); - printf(" -c, --get-chip-ident=type=,chip=\n"); - printf(" Get the chip identifier [VIDIOC_G_CHIP_IDENT]\n"); - printf(" -w, --wide=\n"); - printf(" Sets step between two registers\n"); - printf(" --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]\n"); - printf(" --list-driverids list the known I2C driver IDs for use with the i2cdrv type\n"); - printf("\n"); - printf(" if type == host, then is the host's chip ID (default 0)\n"); - printf(" if type == i2cdrv (default), then is the I2C driver name or ID\n"); - printf(" if type == i2caddr, then is the 7-bit I2C address\n"); + printf("Usage:\n" + " -D, --info show driver info [VIDIOC_QUERYCAP]\n" + " -d, --device= use device instead of /dev/video0\n" + " if is a single digit, then /dev/video is used\n" + " -h, --help display this help message\n" + " --verbose turn on verbose ioctl error reporting.\n" + " -R, --list-registers=type=,chip=[,min=,max=] \n" + " dump registers from to [VIDIOC_DBG_G_REGISTER]\n" + " -r, --set-register=type=,chip=,reg=,val=\n" + " set the register [VIDIOC_DBG_S_REGISTER]\n" + " -C, --scan-chip-idents\n" + " Scan the available host and i2c chips [VIDIOC_G_CHIP_IDENT]\n" + " -c, --get-chip-ident=type=,chip=\n" + " Get the chip identifier [VIDIOC_G_CHIP_IDENT]\n" + " -w, --wide=\n" + " Sets step between two registers\n" + " --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS]\n" + " --list-driverids list the known I2C driver IDs for use with the i2cdrv type\n" + "\n" + " if type == host, then is the host's chip ID (default 0)\n" + " if type == i2cdrv (default), then is the I2C driver name or ID\n" + " if type == i2caddr, then is the 7-bit I2C address\n"); exit(0); } -- cgit v1.2.3