summaryrefslogtreecommitdiffstats
path: root/usr.bin/usbhidctl
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2006-11-23 05:07:32 +0000
committergrog <grog@FreeBSD.org>2006-11-23 05:07:32 +0000
commitf5276a96300c8c43238203a72f20be1cddb8eb52 (patch)
tree85b4343fe37a453744d6a73da657fdbdc179d71c /usr.bin/usbhidctl
parentc7bcd7c5182cdfbbe1d99da465b1e6861de7ac98 (diff)
downloadFreeBSD-src-f5276a96300c8c43238203a72f20be1cddb8eb52.zip
FreeBSD-src-f5276a96300c8c43238203a72f20be1cddb8eb52.tar.gz
usage: Include the - in the x flag.
main: Make -x set the hexdump; there's no obvious reason to toggle it. Nitpicked by: ru MFC after: 1 week
Diffstat (limited to 'usr.bin/usbhidctl')
-rw-r--r--usr.bin/usbhidctl/usbhid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c
index 82072f0..08968c2 100644
--- a/usr.bin/usbhidctl/usbhid.c
+++ b/usr.bin/usbhidctl/usbhid.c
@@ -97,11 +97,11 @@ usage(void)
fprintf(stderr,
"usage: %s -f device "
- "[-l] [-n] [-r] [-t tablefile] [-v] [x] name ...\n",
+ "[-l] [-n] [-r] [-t tablefile] [-v] [-x] name ...\n",
__progname);
fprintf(stderr,
" %s -f device "
- "[-l] [-n] [-r] [-t tablefile] [-v] [x] -a\n",
+ "[-l] [-n] [-r] [-t tablefile] [-v] [-x] -a\n",
__progname);
exit(1);
}
@@ -298,7 +298,7 @@ main(int argc, char **argv)
verbose++;
break;
case 'x':
- hexdump ^= 1;
+ hexdump = 1;
break;
case '?':
default:
OpenPOWER on IntegriCloud