1
0
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:
Werner Almesberger
2016-08-22 05:04:23 -03:00
parent 1812d1af86
commit 1a5c8a564c
6 changed files with 20 additions and 19 deletions

View File

@@ -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;

View File

@@ -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",