Use ELOG instead of DLOG for invalid config directives

This commit is contained in:
Michael Stapelberg 2010-09-01 14:31:46 +02:00
parent 53d6f476bc
commit af9cbc126c
1 changed files with 3 additions and 3 deletions

View File

@ -458,7 +458,7 @@ workspace:
{ {
int ws_num = $<number>3; int ws_num = $<number>3;
if (ws_num < 1) { 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 { } else {
Workspace *ws = workspace_get(ws_num - 1); Workspace *ws = workspace_get(ws_num - 1);
ws->preferred_output = $<string>7; ws->preferred_output = $<string>7;
@ -472,7 +472,7 @@ workspace:
{ {
int ws_num = $<number>3; int ws_num = $<number>3;
if (ws_num < 1) { 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 { } else {
DLOG("workspace name to: %s\n", $<string>5); DLOG("workspace name to: %s\n", $<string>5);
if ($<string>5 != NULL) { if ($<string>5 != NULL) {
@ -501,7 +501,7 @@ assign:
struct Assignment *new = $<assignment>6; struct Assignment *new = $<assignment>6;
if (new->floating != ASSIGN_FLOATING_ONLY && new->workspace < 1) { 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); free(new);
} else { } else {
DLOG(" to %d\n", new->workspace); DLOG(" to %d\n", new->workspace);