tools: use the parsed index instead of the argument

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-09-14 03:19:58 +10:00
parent d0d5284132
commit f99696e6d2

View File

@@ -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;
}