From f99696e6d2190182b846f2bb514ab21ac31df21f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 14 Sep 2015 03:19:58 +1000 Subject: [PATCH] tools: use the parsed index instead of the argument Signed-off-by: Peter Hutterer --- 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 dbbf5120..071d76a3 100644 --- a/tools/ratbag-command.c +++ b/tools/ratbag-command.c @@ -304,7 +304,7 @@ ratbag_cmd_switch_profile(const struct ratbag_cmd *cmd, num_profiles = ratbag_device_get_num_profiles(device); if (index > num_profiles) { - error("'%s' is not a valid profile\n", argv[0]); + error("'%d' is not a valid profile\n", index); goto out; }