diff options
author | Justin Maggard <jmaggard@users.sourceforge.net> | 2009-11-19 06:22:35 +0300 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforge.net> | 2009-11-19 06:22:35 +0300 |
commit | c2903d32b99ca1b33c41a549ad1358d7dc7346c1 (patch) | |
tree | de4414b809e1833124cba0413ca3b61b33a7006b /utils.c | |
parent | 2d389db63b6c8878d174e1a2bf0960bedaa47f80 (diff) |
* Allow the user to specify where to keep the database in the config file.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,6 +19,7 @@ #include <ctype.h> #include <string.h> #include <stdlib.h> +#include <linux/limits.h> #include <sys/stat.h> #include <unistd.h> #include <sys/types.h> @@ -27,6 +28,7 @@ #include <errno.h> #include "minidlnatypes.h" +#include "log.h" int ends_with(const char * haystack, const char * needle) @@ -198,7 +200,7 @@ make_dir(char * path, mode_t mode) } while (1); - printf("make_dir: cannot create directory '%s'", path); + DPRINTF(E_WARN, L_GENERAL, "make_dir: cannot create directory '%s'\n", path); return -1; } |