added LFS support
[psensor.git] / src / lib / slog.c
index b79f7c1..e35898c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2013 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -16,6 +16,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  * 02110-1301 USA
  */
+#define _LARGEFILE_SOURCE 1
+#include "config.h"
+
 #include <locale.h>
 #include <libintl.h>
 #define _(str) gettext(str)
@@ -169,7 +172,7 @@ void slog_close()
                free(last_values);
                last_values = NULL;
        } else {
-               log_err(_("Sensor log not open, cannot close."));
+               log_debug(_("Sensor log not open, cannot close."));
        }
 }