aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-06-27 20:05:11 -0400
committerGitHub <noreply@github.com>2016-06-27 20:05:11 -0400
commitb5d778dd828f8a772373931adaf10152f7db5854 (patch)
treed576aeed92f5819b1e873539e6151509eeec529d /sway
parent8f67903909dc542c9137bd8168967ca1f788b11e (diff)
parent26842ff3833c853e3e3cef065a494c05736a53e5 (diff)
downloadsway-b5d778dd828f8a772373931adaf10152f7db5854.tar.xz
Merge pull request #728 from deklov/master
Add get_log_level() to encapsulate v (current log level)
Diffstat (limited to 'sway')
-rw-r--r--sway/debug_log.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/debug_log.c b/sway/debug_log.c
index f804a541..7c988464 100644
--- a/sway/debug_log.c
+++ b/sway/debug_log.c
@@ -12,8 +12,6 @@
#include <stringop.h>
#include "workspace.h"
-extern log_importance_t v;
-
/* XXX:DEBUG:XXX */
static void container_log(const swayc_t *c, int depth) {
fprintf(stderr, "focus:%c",
@@ -49,7 +47,7 @@ static void container_log(const swayc_t *c, int depth) {
fprintf(stderr, "name:%.16s\n", c->name);
}
void layout_log(const swayc_t *c, int depth) {
- if (L_DEBUG > v) return;
+ if (L_DEBUG > get_log_level()) return;
int i, d;
int e = c->children ? c->children->length : 0;
container_log(c, depth);