aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-01-05 22:32:51 +0100
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-01-05 23:39:46 +0100
commit67985e903188a464e602d04f9ed218bd397f5ab1 (patch)
tree3589175749c9a2ed746b0cc280ab3ccfb33125e9 /sway/commands
parentMerge pull request #1554 from martinetd/cmd_set (diff)
downloadsway-67985e903188a464e602d04f9ed218bd397f5ab1.tar.gz
sway-67985e903188a464e602d04f9ed218bd397f5ab1.tar.zst
sway-67985e903188a464e602d04f9ed218bd397f5ab1.zip
sway: change all sway_log to wlr_log
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/bind.c8
-rw-r--r--sway/commands/exec.c2
-rw-r--r--sway/commands/exec_always.c8
-rw-r--r--sway/commands/input.c2
-rw-r--r--sway/commands/input/click_method.c2
-rw-r--r--sway/commands/input/events.c2
-rw-r--r--sway/commands/input/tap.c4
-rw-r--r--sway/commands/input/xkb_layout.c4
-rw-r--r--sway/commands/input/xkb_model.c4
-rw-r--r--sway/commands/input/xkb_options.c4
-rw-r--r--sway/commands/input/xkb_rules.c4
-rw-r--r--sway/commands/input/xkb_variant.c4
-rw-r--r--sway/commands/output.c8
-rw-r--r--sway/commands/seat.c2
-rw-r--r--sway/commands/set.c2
15 files changed, 30 insertions, 30 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c
index 79121404..cbabb07b 100644
--- a/sway/commands/bind.c
+++ b/sway/commands/bind.c
@@ -145,7 +145,7 @@ struct cmd_results *cmd_bindsym(int argc, char **argv) {
145 for (int i = 0; i < mode_bindings->length; ++i) { 145 for (int i = 0; i < mode_bindings->length; ++i) {
146 struct sway_binding *config_binding = mode_bindings->items[i]; 146 struct sway_binding *config_binding = mode_bindings->items[i];
147 if (binding_key_compare(binding, config_binding)) { 147 if (binding_key_compare(binding, config_binding)) {
148 sway_log(L_DEBUG, "overwriting old binding with command '%s'", 148 wlr_log(L_DEBUG, "overwriting old binding with command '%s'",
149 config_binding->command); 149 config_binding->command);
150 free_sway_binding(config_binding); 150 free_sway_binding(config_binding);
151 mode_bindings->items[i] = binding; 151 mode_bindings->items[i] = binding;
@@ -157,7 +157,7 @@ struct cmd_results *cmd_bindsym(int argc, char **argv) {
157 list_add(mode_bindings, binding); 157 list_add(mode_bindings, binding);
158 } 158 }
159 159
160 sway_log(L_DEBUG, "bindsym - Bound %s to command %s", 160 wlr_log(L_DEBUG, "bindsym - Bound %s to command %s",
161 argv[0], binding->command); 161 argv[0], binding->command);
162 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 162 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
163} 163}
@@ -227,7 +227,7 @@ struct cmd_results *cmd_bindcode(int argc, char **argv) {
227 for (int i = 0; i < mode_bindings->length; ++i) { 227 for (int i = 0; i < mode_bindings->length; ++i) {
228 struct sway_binding *config_binding = mode_bindings->items[i]; 228 struct sway_binding *config_binding = mode_bindings->items[i];
229 if (binding_key_compare(binding, config_binding)) { 229 if (binding_key_compare(binding, config_binding)) {
230 sway_log(L_DEBUG, "overwriting old binding with command '%s'", 230 wlr_log(L_DEBUG, "overwriting old binding with command '%s'",
231 config_binding->command); 231 config_binding->command);
232 free_sway_binding(config_binding); 232 free_sway_binding(config_binding);
233 mode_bindings->items[i] = binding; 233 mode_bindings->items[i] = binding;
@@ -239,7 +239,7 @@ struct cmd_results *cmd_bindcode(int argc, char **argv) {
239 list_add(mode_bindings, binding); 239 list_add(mode_bindings, binding);
240 } 240 }
241 241
242 sway_log(L_DEBUG, "bindcode - Bound %s to command %s", 242 wlr_log(L_DEBUG, "bindcode - Bound %s to command %s",
243 argv[0], binding->command); 243 argv[0], binding->command);
244 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 244 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
245} 245}
diff --git a/sway/commands/exec.c b/sway/commands/exec.c
index fbbc4941..363d5bef 100644
--- a/sway/commands/exec.c
+++ b/sway/commands/exec.c
@@ -8,7 +8,7 @@ struct cmd_results *cmd_exec(int argc, char **argv) {
8 if (!config->active) return cmd_results_new(CMD_DEFER, "exec", NULL); 8 if (!config->active) return cmd_results_new(CMD_DEFER, "exec", NULL);
9 if (config->reloading) { 9 if (config->reloading) {
10 char *args = join_args(argv, argc); 10 char *args = join_args(argv, argc);
11 sway_log(L_DEBUG, "Ignoring 'exec %s' due to reload", args); 11 wlr_log(L_DEBUG, "Ignoring 'exec %s' due to reload", args);
12 free(args); 12 free(args);
13 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 13 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
14 } 14 }
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c
index 9527a487..61870c51 100644
--- a/sway/commands/exec_always.c
+++ b/sway/commands/exec_always.c
@@ -20,7 +20,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
20 20
21 char *tmp = NULL; 21 char *tmp = NULL;
22 if (strcmp((char*)*argv, "--no-startup-id") == 0) { 22 if (strcmp((char*)*argv, "--no-startup-id") == 0) {
23 sway_log(L_INFO, "exec switch '--no-startup-id' not supported, ignored."); 23 wlr_log(L_INFO, "exec switch '--no-startup-id' not supported, ignored.");
24 if ((error = checkarg(argc - 1, "exec_always", EXPECTED_MORE_THAN, 0))) { 24 if ((error = checkarg(argc - 1, "exec_always", EXPECTED_MORE_THAN, 0))) {
25 return error; 25 return error;
26 } 26 }
@@ -35,11 +35,11 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
35 strncpy(cmd, tmp, sizeof(cmd)); 35 strncpy(cmd, tmp, sizeof(cmd));
36 cmd[sizeof(cmd) - 1] = 0; 36 cmd[sizeof(cmd) - 1] = 0;
37 free(tmp); 37 free(tmp);
38 sway_log(L_DEBUG, "Executing %s", cmd); 38 wlr_log(L_DEBUG, "Executing %s", cmd);
39 39
40 int fd[2]; 40 int fd[2];
41 if (pipe(fd) != 0) { 41 if (pipe(fd) != 0) {
42 sway_log(L_ERROR, "Unable to create pipe for fork"); 42 wlr_log(L_ERROR, "Unable to create pipe for fork");
43 } 43 }
44 44
45 pid_t pid; 45 pid_t pid;
@@ -75,7 +75,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
75 // cleanup child process 75 // cleanup child process
76 wait(0); 76 wait(0);
77 if (*child > 0) { 77 if (*child > 0) {
78 sway_log(L_DEBUG, "Child process created with pid %d", *child); 78 wlr_log(L_DEBUG, "Child process created with pid %d", *child);
79 // TODO: add PID to active workspace 79 // TODO: add PID to active workspace
80 } else { 80 } else {
81 free(child); 81 free(child);
diff --git a/sway/commands/input.c b/sway/commands/input.c
index edf45e4c..5ea39f62 100644
--- a/sway/commands/input.c
+++ b/sway/commands/input.c
@@ -12,7 +12,7 @@ struct cmd_results *cmd_input(int argc, char **argv) {
12 12
13 if (config->reading && strcmp("{", argv[1]) == 0) { 13 if (config->reading && strcmp("{", argv[1]) == 0) {
14 current_input_config = new_input_config(argv[0]); 14 current_input_config = new_input_config(argv[0]);
15 sway_log(L_DEBUG, "entering input block: %s", current_input_config->identifier); 15 wlr_log(L_DEBUG, "entering input block: %s", current_input_config->identifier);
16 return cmd_results_new(CMD_BLOCK_INPUT, NULL, NULL); 16 return cmd_results_new(CMD_BLOCK_INPUT, NULL, NULL);
17 } 17 }
18 18
diff --git a/sway/commands/input/click_method.c b/sway/commands/input/click_method.c
index dcf64c1a..22eb15f7 100644
--- a/sway/commands/input/click_method.c
+++ b/sway/commands/input/click_method.c
@@ -6,7 +6,7 @@
6#include "log.h" 6#include "log.h"
7 7
8struct cmd_results *input_cmd_click_method(int argc, char **argv) { 8struct cmd_results *input_cmd_click_method(int argc, char **argv) {
9 sway_log(L_DEBUG, "click_method for device: %d %s", 9 wlr_log(L_DEBUG, "click_method for device: %d %s",
10 current_input_config==NULL, current_input_config->identifier); 10 current_input_config==NULL, current_input_config->identifier);
11 struct cmd_results *error = NULL; 11 struct cmd_results *error = NULL;
12 if ((error = checkarg(argc, "click_method", EXPECTED_AT_LEAST, 1))) { 12 if ((error = checkarg(argc, "click_method", EXPECTED_AT_LEAST, 1))) {
diff --git a/sway/commands/input/events.c b/sway/commands/input/events.c
index 8a74c11e..a1bfbacd 100644
--- a/sway/commands/input/events.c
+++ b/sway/commands/input/events.c
@@ -6,7 +6,7 @@
6#include "log.h" 6#include "log.h"
7 7
8struct cmd_results *input_cmd_events(int argc, char **argv) { 8struct cmd_results *input_cmd_events(int argc, char **argv) {
9 sway_log(L_DEBUG, "events for device: %s", 9 wlr_log(L_DEBUG, "events for device: %s",
10 current_input_config->identifier); 10 current_input_config->identifier);
11 struct cmd_results *error = NULL; 11 struct cmd_results *error = NULL;
12 if ((error = checkarg(argc, "events", EXPECTED_AT_LEAST, 1))) { 12 if ((error = checkarg(argc, "events", EXPECTED_AT_LEAST, 1))) {
diff --git a/sway/commands/input/tap.c b/sway/commands/input/tap.c
index 8547c0cd..ecab9a5b 100644
--- a/sway/commands/input/tap.c
+++ b/sway/commands/input/tap.c
@@ -6,7 +6,7 @@
6#include "log.h" 6#include "log.h"
7 7
8struct cmd_results *input_cmd_tap(int argc, char **argv) { 8struct cmd_results *input_cmd_tap(int argc, char **argv) {
9 sway_log(L_DEBUG, "tap for device: %s", current_input_config->identifier); 9 wlr_log(L_DEBUG, "tap for device: %s", current_input_config->identifier);
10 struct cmd_results *error = NULL; 10 struct cmd_results *error = NULL;
11 if ((error = checkarg(argc, "tap", EXPECTED_AT_LEAST, 1))) { 11 if ((error = checkarg(argc, "tap", EXPECTED_AT_LEAST, 1))) {
12 return error; 12 return error;
@@ -26,7 +26,7 @@ struct cmd_results *input_cmd_tap(int argc, char **argv) {
26 "Expected 'tap <enabled|disabled>'"); 26 "Expected 'tap <enabled|disabled>'");
27 } 27 }
28 28
29 sway_log(L_DEBUG, "apply-tap for device: %s", 29 wlr_log(L_DEBUG, "apply-tap for device: %s",
30 current_input_config->identifier); 30 current_input_config->identifier);
31 apply_input_config(new_config); 31 apply_input_config(new_config);
32 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 32 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/input/xkb_layout.c b/sway/commands/input/xkb_layout.c
index a25d3850..25db1a33 100644
--- a/sway/commands/input/xkb_layout.c
+++ b/sway/commands/input/xkb_layout.c
@@ -5,7 +5,7 @@
5#include "log.h" 5#include "log.h"
6 6
7struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) { 7struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
8 sway_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier); 8 wlr_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier);
9 struct cmd_results *error = NULL; 9 struct cmd_results *error = NULL;
10 if ((error = checkarg(argc, "xkb_layout", EXPECTED_EQUAL_TO, 1))) { 10 if ((error = checkarg(argc, "xkb_layout", EXPECTED_EQUAL_TO, 1))) {
11 return error; 11 return error;
@@ -18,7 +18,7 @@ struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
18 18
19 new_config->xkb_layout = strdup(argv[0]); 19 new_config->xkb_layout = strdup(argv[0]);
20 20
21 sway_log(L_DEBUG, "apply-xkb_layout for device: %s layout: %s", 21 wlr_log(L_DEBUG, "apply-xkb_layout for device: %s layout: %s",
22 current_input_config->identifier, new_config->xkb_layout); 22 current_input_config->identifier, new_config->xkb_layout);
23 apply_input_config(new_config); 23 apply_input_config(new_config);
24 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/input/xkb_model.c b/sway/commands/input/xkb_model.c
index 9729e869..819b796b 100644
--- a/sway/commands/input/xkb_model.c
+++ b/sway/commands/input/xkb_model.c
@@ -5,7 +5,7 @@
5#include "log.h" 5#include "log.h"
6 6
7struct cmd_results *input_cmd_xkb_model(int argc, char **argv) { 7struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
8 sway_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier); 8 wlr_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier);
9 struct cmd_results *error = NULL; 9 struct cmd_results *error = NULL;
10 if ((error = checkarg(argc, "xkb_model", EXPECTED_EQUAL_TO, 1))) { 10 if ((error = checkarg(argc, "xkb_model", EXPECTED_EQUAL_TO, 1))) {
11 return error; 11 return error;
@@ -18,7 +18,7 @@ struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
18 18
19 new_config->xkb_model = strdup(argv[0]); 19 new_config->xkb_model = strdup(argv[0]);
20 20
21 sway_log(L_DEBUG, "apply-xkb_model for device: %s model: %s", 21 wlr_log(L_DEBUG, "apply-xkb_model for device: %s model: %s",
22 current_input_config->identifier, new_config->xkb_model); 22 current_input_config->identifier, new_config->xkb_model);
23 apply_input_config(new_config); 23 apply_input_config(new_config);
24 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/input/xkb_options.c b/sway/commands/input/xkb_options.c
index 504849cc..ff5f83ec 100644
--- a/sway/commands/input/xkb_options.c
+++ b/sway/commands/input/xkb_options.c
@@ -5,7 +5,7 @@
5#include "log.h" 5#include "log.h"
6 6
7struct cmd_results *input_cmd_xkb_options(int argc, char **argv) { 7struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
8 sway_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier); 8 wlr_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier);
9 struct cmd_results *error = NULL; 9 struct cmd_results *error = NULL;
10 if ((error = checkarg(argc, "xkb_options", EXPECTED_EQUAL_TO, 1))) { 10 if ((error = checkarg(argc, "xkb_options", EXPECTED_EQUAL_TO, 1))) {
11 return error; 11 return error;
@@ -18,7 +18,7 @@ struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
18 18
19 new_config->xkb_options = strdup(argv[0]); 19 new_config->xkb_options = strdup(argv[0]);
20 20
21 sway_log(L_DEBUG, "apply-xkb_options for device: %s options: %s", 21 wlr_log(L_DEBUG, "apply-xkb_options for device: %s options: %s",
22 current_input_config->identifier, new_config->xkb_options); 22 current_input_config->identifier, new_config->xkb_options);
23 apply_input_config(new_config); 23 apply_input_config(new_config);
24 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/input/xkb_rules.c b/sway/commands/input/xkb_rules.c
index db7d8abe..aafe0003 100644
--- a/sway/commands/input/xkb_rules.c
+++ b/sway/commands/input/xkb_rules.c
@@ -5,7 +5,7 @@
5#include "log.h" 5#include "log.h"
6 6
7struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) { 7struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
8 sway_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier); 8 wlr_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier);
9 struct cmd_results *error = NULL; 9 struct cmd_results *error = NULL;
10 if ((error = checkarg(argc, "xkb_rules", EXPECTED_EQUAL_TO, 1))) { 10 if ((error = checkarg(argc, "xkb_rules", EXPECTED_EQUAL_TO, 1))) {
11 return error; 11 return error;
@@ -18,7 +18,7 @@ struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
18 18
19 new_config->xkb_rules = strdup(argv[0]); 19 new_config->xkb_rules = strdup(argv[0]);
20 20
21 sway_log(L_DEBUG, "apply-xkb_rules for device: %s rules: %s", 21 wlr_log(L_DEBUG, "apply-xkb_rules for device: %s rules: %s",
22 current_input_config->identifier, new_config->xkb_rules); 22 current_input_config->identifier, new_config->xkb_rules);
23 apply_input_config(new_config); 23 apply_input_config(new_config);
24 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/input/xkb_variant.c b/sway/commands/input/xkb_variant.c
index 855e6abc..89a61fdc 100644
--- a/sway/commands/input/xkb_variant.c
+++ b/sway/commands/input/xkb_variant.c
@@ -5,7 +5,7 @@
5#include "log.h" 5#include "log.h"
6 6
7struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) { 7struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
8 sway_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier); 8 wlr_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier);
9 struct cmd_results *error = NULL; 9 struct cmd_results *error = NULL;
10 if ((error = checkarg(argc, "xkb_variant", EXPECTED_EQUAL_TO, 1))) { 10 if ((error = checkarg(argc, "xkb_variant", EXPECTED_EQUAL_TO, 1))) {
11 return error; 11 return error;
@@ -18,7 +18,7 @@ struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
18 18
19 new_config->xkb_variant = strdup(argv[0]); 19 new_config->xkb_variant = strdup(argv[0]);
20 20
21 sway_log(L_DEBUG, "apply-xkb_variant for device: %s variant: %s", 21 wlr_log(L_DEBUG, "apply-xkb_variant for device: %s variant: %s",
22 current_input_config->identifier, new_config->xkb_variant); 22 current_input_config->identifier, new_config->xkb_variant);
23 apply_input_config(new_config); 23 apply_input_config(new_config);
24 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL, NULL);
diff --git a/sway/commands/output.c b/sway/commands/output.c
index 8c0fa63c..e747eb4e 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -203,12 +203,12 @@ static struct cmd_results *cmd_output_background(struct output_config *output,
203 if (src) { 203 if (src) {
204 sprintf(src, "%s/%s", conf_path, p.we_wordv[0]); 204 sprintf(src, "%s/%s", conf_path, p.we_wordv[0]);
205 } else { 205 } else {
206 sway_log(L_ERROR, 206 wlr_log(L_ERROR,
207 "Unable to allocate background source"); 207 "Unable to allocate background source");
208 } 208 }
209 free(conf); 209 free(conf);
210 } else { 210 } else {
211 sway_log(L_ERROR, "Unable to allocate background source"); 211 wlr_log(L_ERROR, "Unable to allocate background source");
212 } 212 }
213 } 213 }
214 if (!src || access(src, F_OK) == -1) { 214 if (!src || access(src, F_OK) == -1) {
@@ -238,7 +238,7 @@ struct cmd_results *cmd_output(int argc, char **argv) {
238 238
239 struct output_config *output = new_output_config(argv[0]); 239 struct output_config *output = new_output_config(argv[0]);
240 if (!output) { 240 if (!output) {
241 sway_log(L_ERROR, "Failed to allocate output config"); 241 wlr_log(L_ERROR, "Failed to allocate output config");
242 return NULL; 242 return NULL;
243 } 243 }
244 244
@@ -284,7 +284,7 @@ struct cmd_results *cmd_output(int argc, char **argv) {
284 list_add(config->output_configs, output); 284 list_add(config->output_configs, output);
285 } 285 }
286 286
287 sway_log(L_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz " 287 wlr_log(L_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz "
288 "position %d,%d scale %f transform %d) (bg %s %s)", 288 "position %d,%d scale %f transform %d) (bg %s %s)",
289 output->name, output->enabled, output->width, output->height, 289 output->name, output->enabled, output->width, output->height,
290 output->refresh_rate, output->x, output->y, output->scale, 290 output->refresh_rate, output->x, output->y, output->scale,
diff --git a/sway/commands/seat.c b/sway/commands/seat.c
index 155bc510..6284002b 100644
--- a/sway/commands/seat.c
+++ b/sway/commands/seat.c
@@ -12,7 +12,7 @@ struct cmd_results *cmd_seat(int argc, char **argv) {
12 12
13 if (config->reading && strcmp("{", argv[1]) == 0) { 13 if (config->reading && strcmp("{", argv[1]) == 0) {
14 current_seat_config = new_seat_config(argv[0]); 14 current_seat_config = new_seat_config(argv[0]);
15 sway_log(L_DEBUG, "entering seat block: %s", current_seat_config->name); 15 wlr_log(L_DEBUG, "entering seat block: %s", current_seat_config->name);
16 return cmd_results_new(CMD_BLOCK_SEAT, NULL, NULL); 16 return cmd_results_new(CMD_BLOCK_SEAT, NULL, NULL);
17 } 17 }
18 18
diff --git a/sway/commands/set.c b/sway/commands/set.c
index dcd928ba..856c73e7 100644
--- a/sway/commands/set.c
+++ b/sway/commands/set.c
@@ -33,7 +33,7 @@ struct cmd_results *cmd_set(int argc, char **argv) {
33 } 33 }
34 34
35 if (argv[0][0] != '$') { 35 if (argv[0][0] != '$') {
36 sway_log(L_INFO, "Warning: variable '%s' doesn't start with $", argv[0]); 36 wlr_log(L_INFO, "Warning: variable '%s' doesn't start with $", argv[0]);
37 37
38 size_t size = snprintf(NULL, 0, "$%s", argv[0]); 38 size_t size = snprintf(NULL, 0, "$%s", argv[0]);
39 tmp = malloc(size + 1); 39 tmp = malloc(size + 1);