]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add the primary and secondary conf file path when printing stats
authorDavid Givone <david@givone.net>
Sun, 2 Sep 2012 22:39:30 +0000 (15:39 -0700)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 9 Sep 2012 08:35:36 +0000 (10:35 +0200)
stats.c

diff --git a/stats.c b/stats.c
index 2286ef3e0e3fc634190c7cd4d4560924718a6674..9a0880869b43543d45f188887531a211fc365fde 100644 (file)
--- 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++) {