#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
#include <linux/input.h>
#include "compositor.h"
#include "tablet-shell-server-protocol.h"
+#include "log.h"
/*
* TODO: Don't fade back from black until we've received a lockscreen
shell->process.pid = 0;
- fprintf(stderr,
- "weston-tablet-shell crashed, exit code %d\n", status);
+ weston_log("weston-tablet-shell crashed, exit code %d\n", status);
}
static void
"STARTING", "LOCKED", "HOME", "SWITCHER", "TASK"
};
- fprintf(stderr, "switching to state %s (from %s)\n",
+ weston_log("switching to state %s (from %s)\n",
states[state], states[shell->state]);
shell->previous_state = shell->state;
shell->state = state;
tablet_client->surface = NULL;
shell->current_client = tablet_client;
- fprintf(stderr, "created client %p, id %d, name %s, fd %d\n",
+ weston_log("created client %p, id %d, name %s, fd %d\n",
tablet_client->client, id, name, fd);
}