summaryrefslogtreecommitdiff
path: root/file/file.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-28 22:22:27 -0300
committerWerner Almesberger <werner@almesberger.net>2016-11-28 22:22:27 -0300
commit536e38b0b4bd02e63281f3044b768b24a3cbe7bb (patch)
treeae7471468ffa699de26f3a66fc93e6ab737df06c /file/file.c
parent904ae01cbffeec04c400eb82e60f64ce64c3837c (diff)
downloadeeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.tar.gz
eeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.tar.bz2
eeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.zip
file/file.c (file_open), git-file.c (try_related): more diagnostics
Diffstat (limited to 'file/file.c')
-rw-r--r--file/file.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/file/file.c b/file/file.c
index e810e20..4690ebc 100644
--- a/file/file.c
+++ b/file/file.c
@@ -197,7 +197,16 @@ bool file_open(struct file *file, const char *name, const struct file *related)
{
file_init(file, name, related);
- progress(2, "file_open: trying %s", name);
+ if (related) {
+ if (related->vcs)
+ progress(2, "file_open: trying %s (related %s, vcs)",
+ name, related->name);
+ else
+ progress(2, "file_open: trying %s (related %s)",
+ name, related->name);
+ } else {
+ progress(2, "file_open: trying %s", name);
+ }
if (related && related->vcs) {
file->vcs = open_vcs(file);