summaryrefslogtreecommitdiff
path: root/src/dumm/dumm.c
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2010-05-25 19:01:36 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2010-05-25 19:01:36 +0000
commit1ac70afcc1f7d6d2738a34308810719b0976d29f (patch)
tree805f6ce2a15d1a717781d7cbceac8408a74b6b0c /src/dumm/dumm.c
parented7d79f96177044949744da10f4431c1d6242241 (diff)
downloadvyos-strongswan-1ac70afcc1f7d6d2738a34308810719b0976d29f.tar.gz
vyos-strongswan-1ac70afcc1f7d6d2738a34308810719b0976d29f.zip
[svn-upgrade] Integrating new upstream version, strongswan (4.4.0)
Diffstat (limited to 'src/dumm/dumm.c')
-rw-r--r--src/dumm/dumm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dumm/dumm.c b/src/dumm/dumm.c
index 0e8ab43f3..7ec340089 100644
--- a/src/dumm/dumm.c
+++ b/src/dumm/dumm.c
@@ -162,7 +162,7 @@ static bool load_template(private_dumm_t *this, char *dir)
}
if (strlen(dir) > PATH_MAX)
{
- DBG1("template directory string '%s' is too long", dir);
+ DBG1(DBG_LIB, "template directory string '%s' is too long", dir);
return FALSE;
}
@@ -175,7 +175,8 @@ static bool load_template(private_dumm_t *this, char *dir)
{ /* does not exist, create template */
if (!mkdir_p(this->template, PERME))
{
- DBG1("creating template directory '%s' failed: %m", this->template);
+ DBG1(DBG_LIB, "creating template directory '%s' failed: %m",
+ this->template);
return FALSE;
}
}
@@ -302,7 +303,8 @@ static void load_guests(private_dumm_t *this)
}
else
{
- DBG1("loading guest in directory '%s' failed, skipped", ent->d_name);
+ DBG1(DBG_LIB, "loading guest in directory '%s' failed, skipped",
+ ent->d_name);
}
}
closedir(dir);
@@ -360,7 +362,8 @@ dumm_t *dumm_create(char *dir)
if (this->dir == NULL || this->guest_dir == NULL ||
(mkdir(this->guest_dir, PERME) < 0 && errno != EEXIST))
{
- DBG1("creating guest directory '%s' failed: %m", this->guest_dir);
+ DBG1(DBG_LIB, "creating guest directory '%s' failed: %m",
+ this->guest_dir);
destroy(this);
return NULL;
}