]> git.sur5r.net Git - i3/i3/commitdiff
Use ELOG instead of DLOG for invalid config directives
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 1 Sep 2010 12:31:46 +0000 (14:31 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 1 Sep 2010 12:31:46 +0000 (14:31 +0200)
src/cfgparse.y

index 790ae3be8a1f6541ec428c9d997214219d172b99..5c3c4a083f0f89c1a2f58d62387447459aa361a5 100644 (file)
@@ -458,7 +458,7 @@ workspace:
         {
                 int ws_num = $<number>3;
                 if (ws_num < 1) {
-                        DLOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
+                        ELOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
                 } else {
                         Workspace *ws = workspace_get(ws_num - 1);
                         ws->preferred_output = $<string>7;
@@ -472,7 +472,7 @@ workspace:
         {
                 int ws_num = $<number>3;
                 if (ws_num < 1) {
-                        DLOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
+                        ELOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
                 } else {
                         DLOG("workspace name to: %s\n", $<string>5);
                         if ($<string>5 != NULL) {
@@ -501,7 +501,7 @@ assign:
 
                 struct Assignment *new = $<assignment>6;
                 if (new->floating != ASSIGN_FLOATING_ONLY && new->workspace < 1) {
-                        DLOG("Invalid client assignment, workspace number %d out of range\n", new->workspace);
+                        ELOG("Invalid client assignment, workspace number %d out of range\n", new->workspace);
                         free(new);
                 } else {
                         DLOG("  to %d\n", new->workspace);