aboutsummaryrefslogtreecommitdiff
path: root/sway/config
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-06 09:31:34 -0500
committerGitHub <noreply@github.com>2018-01-06 09:31:34 -0500
commit5a23959242419169fa4af032d85ee3f65e7041e4 (patch)
tree79386d3d2aa90718f8c071a3337c695cb8a71f78 /sway/config
parentfdc92e745498a4e0707a51c3fd3390d462e9ae59 (diff)
parentd4ddfec32e15fd1f47568f1b82eacc27cda5266a (diff)
Merge pull request #1556 from martinetd/cleanup_logging
Cleanup logging
Diffstat (limited to 'sway/config')
-rw-r--r--sway/config/input.c6
-rw-r--r--sway/config/output.c16
-rw-r--r--sway/config/seat.c6
3 files changed, 14 insertions, 14 deletions
diff --git a/sway/config/input.c b/sway/config/input.c
index 6f8d31f7..96181302 100644
--- a/sway/config/input.c
+++ b/sway/config/input.c
@@ -8,13 +8,13 @@
struct input_config *new_input_config(const char* identifier) {
struct input_config *input = calloc(1, sizeof(struct input_config));
if (!input) {
- sway_log(L_DEBUG, "Unable to allocate input config");
+ wlr_log(L_DEBUG, "Unable to allocate input config");
return NULL;
}
- sway_log(L_DEBUG, "new_input_config(%s)", identifier);
+ wlr_log(L_DEBUG, "new_input_config(%s)", identifier);
if (!(input->identifier = strdup(identifier))) {
free(input);
- sway_log(L_DEBUG, "Unable to allocate input config");
+ wlr_log(L_DEBUG, "Unable to allocate input config");
return NULL;
}
diff --git a/sway/config/output.c b/sway/config/output.c
index e798a20e..69e883f1 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -84,7 +84,7 @@ static void set_mode(struct wlr_output *output, int width, int height,
float refresh_rate) {
int mhz = (int)(refresh_rate * 1000);
if (wl_list_empty(&output->modes)) {
- sway_log(L_DEBUG, "Assigning custom mode to %s", output->name);
+ wlr_log(L_DEBUG, "Assigning custom mode to %s", output->name);
wlr_output_set_custom_mode(output, width, height, mhz);
return;
}
@@ -100,9 +100,9 @@ static void set_mode(struct wlr_output *output, int width, int height,
}
}
if (!best) {
- sway_log(L_ERROR, "Configured mode for %s not available", output->name);
+ wlr_log(L_ERROR, "Configured mode for %s not available", output->name);
} else {
- sway_log(L_DEBUG, "Assigning configured mode to %s", output->name);
+ wlr_log(L_DEBUG, "Assigning configured mode to %s", output->name);
wlr_output_set_mode(output, best);
}
}
@@ -119,22 +119,22 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
}
if (oc && oc->width > 0 && oc->height > 0) {
- sway_log(L_DEBUG, "Set %s mode to %dx%d (%f GHz)", oc->name, oc->width,
+ wlr_log(L_DEBUG, "Set %s mode to %dx%d (%f GHz)", oc->name, oc->width,
oc->height, oc->refresh_rate);
set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate);
}
if (oc && oc->scale > 0) {
- sway_log(L_DEBUG, "Set %s scale to %f", oc->name, oc->scale);
+ wlr_log(L_DEBUG, "Set %s scale to %f", oc->name, oc->scale);
wlr_output_set_scale(wlr_output, oc->scale);
}
if (oc && oc->transform >= 0) {
- sway_log(L_DEBUG, "Set %s transform to %d", oc->name, oc->transform);
+ wlr_log(L_DEBUG, "Set %s transform to %d", oc->name, oc->transform);
wlr_output_set_transform(wlr_output, oc->transform);
}
// Find position for it
if (oc && (oc->x != -1 || oc->y != -1)) {
- sway_log(L_DEBUG, "Set %s position to %d, %d", oc->name, oc->x, oc->y);
+ wlr_log(L_DEBUG, "Set %s position to %d, %d", oc->name, oc->x, oc->y);
wlr_output_layout_add(root_container.sway_root->output_layout,
wlr_output, oc->x, oc->y);
} else {
@@ -165,7 +165,7 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
terminate_swaybg(output->bg_pid);
}
- sway_log(L_DEBUG, "Setting background for output %d to %s", output_i, oc->background);
+ wlr_log(L_DEBUG, "Setting background for output %d to %s", output_i, oc->background);
size_t bufsize = 12;
char output_id[bufsize];
diff --git a/sway/config/seat.c b/sway/config/seat.c
index 113139e8..03cc6d4e 100644
--- a/sway/config/seat.c
+++ b/sway/config/seat.c
@@ -7,11 +7,11 @@
struct seat_config *new_seat_config(const char* name) {
struct seat_config *seat = calloc(1, sizeof(struct seat_config));
if (!seat) {
- sway_log(L_DEBUG, "Unable to allocate seat config");
+ wlr_log(L_DEBUG, "Unable to allocate seat config");
return NULL;
}
- sway_log(L_DEBUG, "new_seat_config(%s)", name);
+ wlr_log(L_DEBUG, "new_seat_config(%s)", name);
seat->name = strdup(name);
if (!sway_assert(seat->name, "could not allocate name for seat")) {
free(seat);
@@ -34,7 +34,7 @@ struct seat_attachment_config *seat_attachment_config_new() {
struct seat_attachment_config *attachment =
calloc(1, sizeof(struct seat_attachment_config));
if (!attachment) {
- sway_log(L_DEBUG, "cannot allocate attachment config");
+ wlr_log(L_DEBUG, "cannot allocate attachment config");
return NULL;
}
return attachment;