[PATCH 21/31] btt: fix --do-active to not perform --q2d-latencies|-z

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With flag NULL, val is returned from getopt_long().
Since long option --do-active is short option -Z, val should be capital 'Z'
so the switch construct matches case 'Z' as for the short option.
Otherwise --do-active would end up the same as -z which is --q2d-latencies.
Fixes btt v2.09 in blktrace v1.0.2.

Signed-off-by: Steffen Maier <maier@xxxxxxxxxxxxx>
Fixes: 2e37a10ee8b4 ("btt: Added in I/O activity per device and system-wide")
---
 btt/args.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/btt/args.c b/btt/args.c
index 5c5078ab2c81..4a3ab6fe1044 100644
--- a/btt/args.c
+++ b/btt/args.c
@@ -191,7 +191,7 @@ static struct option l_opts[] = {
 		.name = "do-active",
 		.has_arg = no_argument,
 		.flag = NULL,
-		.val = 'z'
+		.val = 'Z'
 	},
 	{
 		.name = "easy-parse-avgs",
-- 
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux