X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FW1Util.cc;h=b375a352494933ccb26056cbffef57c71c0dde93;hb=af26b84b20b6d9d0e0ce690e8011a037e87dc5c8;hp=452d7290758e7b1eee203e5d27e39c9a03a548a0;hpb=af341b7dfafac0912f513879565ebd856aa77915;p=lib1wire.git diff --git a/src/W1Util.cc b/src/W1Util.cc index 452d729..b375a35 100644 --- a/src/W1Util.cc +++ b/src/W1Util.cc @@ -78,9 +78,10 @@ bool W1Util::mkdirs(const char *path) { *p = '\0'; // if dir does not exist, create it if (access(path, F_OK) != 0) { - log_debug("trying to create directory: %s\n", path); + //log_debug("trying to create directory: %s\n", path); err_flg = mkdir(path, S_IRWXU); if (err_flg != 0) { + log_error("Could not create directory: %s\n", path); ret_val = false; break; } @@ -91,9 +92,10 @@ bool W1Util::mkdirs(const char *path) { if (ret_val == true) { // if dir does not exist, create it if (access(path, F_OK) != 0) { - log_debug("trying to create directory: %s\n", path); + //log_debug("trying to create directory: %s\n", path); err_flg = mkdir(path, S_IRWXU); if (err_flg != 0) { + log_error("Could not create directory: %s\n", path); ret_val = false; } }