Use LOCALSTATEDIR for logfile location
Now that we have autoconf giving us installation directories, set the
log directory accordingly.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/log-handler.c b/log-handler.c
index 8396890..eb5f80f 100644
--- a/log-handler.c
+++ b/log-handler.c
@@ -24,7 +24,8 @@
};
-static const char *filename = "uart.log";
+static const char *filename = LOCALSTATEDIR "/log/openbmc-console.log";
+
static const size_t logsize = 16 * 1024;
static struct log_handler *to_log_handler(struct handler *handler)