summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 05:04:23 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 05:04:23 -0300
commitf4c830911621fca111a28ffc735a11b330975adf (patch)
treeafa7e743ddf393c0a1e2318a2710418e7b92e406 /file
parent4f05f33f81bcd58863e941514c291baabd89f2a9 (diff)
downloadeeshow-f4c830911621fca111a28ffc735a11b330975adf.tar.gz
eeshow-f4c830911621fca111a28ffc735a11b330975adf.tar.bz2
eeshow-f4c830911621fca111a28ffc735a11b330975adf.zip
eeshow/diag.c (error): don't require user to supply newline
Diffstat (limited to 'file')
-rw-r--r--file/file.c2
-rw-r--r--file/git-file.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/file/file.c b/file/file.c
index 6d84ed8..d41d053 100644
--- a/file/file.c
+++ b/file/file.c
@@ -194,7 +194,7 @@ bool file_open(struct file *file, const char *name, const struct file *related)
if (file->vcs)
return 1;
- error("could not open %s\n", name);
+ error("could not open %s", name);
fail:
free((char *) file->name);
return 0;
diff --git a/file/git-file.c b/file/git-file.c
index 7c9cf78..681556b 100644
--- a/file/git-file.c
+++ b/file/git-file.c
@@ -286,7 +286,7 @@ static git_tree_entry *find_file(git_repository *repo, git_tree *tree,
if (git_tree_entry_bypath(&entry, tree, canon_path)) {
const git_error *e = giterr_last();
- error("%s: %s\n", path, e->message);
+ error("%s: %s", path, e->message);
free(canon_path);
return NULL;
}
@@ -443,7 +443,7 @@ struct vcs_git *vcs_git_open(const char *revision, const char *name,
vcs_git->repo = select_repo(name);
if (!vcs_git->repo) {
- error("%s: not found\n", name);
+ error("%s: not found", name);
goto fail;
}
progress(2, "using repository %s\n",