summaryrefslogtreecommitdiff
path: root/file/file.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 05:06:05 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 05:06:05 -0300
commit744cace90da595ab0dc98f65ed053968e07ef2c6 (patch)
tree3ebcc5862b51a34bbde2dc45eca757140b8fec4f /file/file.c
parentf4c830911621fca111a28ffc735a11b330975adf (diff)
downloadeeshow-744cace90da595ab0dc98f65ed053968e07ef2c6.tar.gz
eeshow-744cace90da595ab0dc98f65ed053968e07ef2c6.tar.bz2
eeshow-744cace90da595ab0dc98f65ed053968e07ef2c6.zip
eeshow/diag.c (progress): don't require user to supply newline
Diffstat (limited to 'file/file.c')
-rw-r--r--file/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/file/file.c b/file/file.c
index d41d053..274d88f 100644
--- a/file/file.c
+++ b/file/file.c
@@ -89,7 +89,7 @@ static bool try_related(struct file *file)
return 0;
}
- progress(1, "reading %s\n", tmp);
+ progress(1, "reading %s", tmp);
free((char *) file->name);
file->name = tmp;
@@ -138,14 +138,14 @@ static void *open_vcs(struct file *file)
free(tmp);
return file->vcs;
}
- progress(2, "could not open %s:%s\n", tmp, colon + 1);
+ progress(2, "could not open %s:%s", tmp, colon + 1);
return NULL;
} else {
file->vcs = vcs_git_open(NULL, file->name,
file->related ? file->related->vcs : NULL);
if (file->vcs)
return file->vcs;
- progress(2, "could not open %s\n", file->name);
+ progress(2, "could not open %s", file->name);
return NULL;
}
}
@@ -174,7 +174,7 @@ bool file_open(struct file *file, const char *name, const struct file *related)
file->file = fopen(name, "r");
if (file->file) {
- progress(1, "reading %s\n", name);
+ progress(1, "reading %s", name);
return 1;
}
@@ -211,7 +211,7 @@ bool file_open_revision(struct file *file, const char *rev, const char *name,
file->vcs = vcs_git_open(rev, name, related ? related->vcs : NULL);
if (file->vcs)
return 1;
- progress(2, "could not open %s at %s\n", name, rev);
+ progress(2, "could not open %s at %s", name, rev);
return 0;
}