From: Florian Forster Date: Tue, 11 Sep 2007 09:11:25 +0000 (+0200) Subject: collectd: Make `mkdir' error messages more identifiable. X-Git-Tag: collectd-4.0.8~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=feaebecc0da2199b4dbbc2d8f0aa2c712b91e835;p=collectd.git collectd: Make `mkdir' error messages more identifiable. --- diff --git a/src/collectd.c b/src/collectd.c index 4fbd5c09..4e18fd6e 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -114,7 +114,7 @@ static int change_basedir (const char *orig_dir) if (mkdir (orig_dir, 0755) == -1) { char errbuf[1024]; - ERROR ("mkdir (%s): %s", orig_dir, + ERROR ("change_basedir: mkdir (%s): %s", orig_dir, sstrerror (errno, errbuf, sizeof (errbuf))); return (-1); diff --git a/src/common.c b/src/common.c index 951bae30..974a29ea 100644 --- a/src/common.c +++ b/src/common.c @@ -421,7 +421,7 @@ int check_create_dir (const char *file_orig) if (mkdir (dir, 0755) == -1) { char errbuf[1024]; - ERROR ("mkdir (%s): %s", dir, + ERROR ("check_create_dir: mkdir (%s): %s", dir, sstrerror (errno, errbuf, sizeof (errbuf))); return (-1); @@ -444,7 +444,7 @@ int check_create_dir (const char *file_orig) } return (0); -} +} /* check_create_dir */ #ifdef HAVE_LIBKSTAT int get_kstat (kstat_t **ksp_ptr, char *module, int instance, char *name)