From feaebecc0da2199b4dbbc2d8f0aa2c712b91e835 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 11 Sep 2007 11:11:25 +0200 Subject: [PATCH] collectd: Make `mkdir' error messages more identifiable. --- src/collectd.c | 2 +- src/common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) -- 2.30.2