From: David Givone Date: Sun, 2 Sep 2012 22:39:30 +0000 (-0700) Subject: Add the primary and secondary conf file path when printing stats X-Git-Tag: v3.2~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15f9ced6a9fd24327871084e2b990199947fe732;p=thirdparty%2Fccache.git Add the primary and secondary conf file path when printing stats --- diff --git a/stats.c b/stats.c index 2286ef3e0..9a0880869 100644 --- a/stats.c +++ b/stats.c @@ -36,6 +36,8 @@ extern char *stats_file; extern struct conf *conf; extern unsigned lock_staleness_limit; +extern char *primary_config_path; +extern char *secondary_config_path; static struct counters *counter_updates; @@ -300,6 +302,10 @@ stats_summary(struct conf *conf) } printf("cache directory %s\n", conf->cache_dir); + printf("primary config path %s\n", + primary_config_path ? primary_config_path : ""); + printf("secondary config path (readonly) %s\n", + secondary_config_path ? secondary_config_path : ""); /* and display them */ for (i = 0; stats_info[i].message; i++) {