mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
eeshow/diag.c (error): don't require user to supply newline
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user