diff options
author | Jan Pokorný <jpokorny@fedoraproject.org> | 2019-03-26 23:21:30 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-27 12:07:52 -0400 |
commit | bfdee1319ffc8a720d0536a752a19ba23615a1e2 (patch) | |
tree | 5a2ebe7acfd82d03e14accbf45bc98ce47463e7f /sway/commands/bind.c | |
parent | 3a31889d7cb00c28724bc093653b3015393c5cb4 (diff) |
bindings: fix overwrite log argument mismatch
Thanks, @RedSoxFan, for the review spotting another instance.
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index b3d391da..9a937c61 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -316,7 +316,7 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, struct sway_binding *config_binding = mode_bindings->items[i]; if (binding_key_compare(binding, config_binding)) { sway_log(SWAY_INFO, "Overwriting binding '%s' for device '%s' " - "from `%s` to `%s`", argv[0], binding->input, + "to `%s` from `%s`", argv[0], binding->input, binding->command, config_binding->command); if (warn) { config_add_swaynag_warning("Overwriting binding" @@ -420,7 +420,7 @@ struct cmd_results *cmd_bindswitch(int argc, char **argv) { for (int i = 0; i < mode_bindings->length; ++i) { struct sway_switch_binding *config_binding = mode_bindings->items[i]; if (binding_switch_compare(binding, config_binding)) { - sway_log(SWAY_INFO, "Overwriting binding '%s' from `%s` to `%s`", + sway_log(SWAY_INFO, "Overwriting binding '%s' to `%s` from `%s`", argv[0], binding->command, config_binding->command); if (warn) { config_add_swaynag_warning("Overwriting binding" |