From 07a0b0961b765f30699a7e7be91899aea2287e4c Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 27 Aug 2015 14:31:58 -0400 Subject: [PATCH] tools: profiles are 0-index based It felt weird reading: Profile 2 Resolutions: 3: 1000dpi @ 500Hz (active) 3: 1600dpi @ 500Hz 3: 2400dpi @ 500Hz 3: 3200dpi @ 500Hz 3: 4000dpi @ 500Hz 3: 8000dpi @ 500Hz We could index the profiles to 1 too, but that would introduce slightly more code change. Signed-off-by: Benjamin Tissoires --- tools/ratbag-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ratbag-command.c b/tools/ratbag-command.c index dfe4b37c..e766a2db 100644 --- a/tools/ratbag-command.c +++ b/tools/ratbag-command.c @@ -330,7 +330,7 @@ ratbag_cmd_info(struct ratbag *ratbag, uint32_t flags, int argc, char **argv) res = ratbag_profile_get_resolution(profile, j); dpi = ratbag_resolution_get_dpi(res); rate = ratbag_resolution_get_report_rate(res); - printf(" %d: %ddpi @ %dHz%s\n", i+1, dpi, rate, + printf(" %d: %ddpi @ %dHz%s\n", i, dpi, rate, ratbag_resolution_is_active(res) ? " (active)" : ""); ratbag_resolution_unref(res);