diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Log scan lock failures that are not contention
Diffstat (limited to '')
-rw-r--r--source/scan-tree.c14
1 file changed, 7 insertions, 7 deletions
diff --git a/source/scan-tree.c b/source/scan-tree.c
index 3528d43..ac74eb3 100644
--- a/source/scan-tree.c
+++ b/source/scan-tree.c
@@ -31,7 +31,7 @@ static int stat_entry(const char *dir, const char *name, struct stat *st)
// A missing entry is the ordinary answer for a directory that is not a
// repository, so only some other failure is worth reporting.
if (err && errno != ENOENT)
- fprintf(stderr, "Error checking path %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error checking path %s: %s (%d)\n",
dir, strerror(errno), errno);
strbuf_release(&path);
return err;
@@ -125,7 +125,7 @@ static void add_repo(const char *base, struct strbuf *path)
size_t desc_size;
if (stat(path->buf, &st)) {
- fprintf(stderr, "Error accessing %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error accessing %s: %s (%d)\n",
path->buf, strerror(errno), errno);
return;
}
@@ -174,7 +174,7 @@ static void add_repo(const char *base, struct strbuf *path)
current_repo->path = cgit_strdup_first_line(path->buf);
while (!current_repo->owner) {
if ((pwd = getpwuid(st.st_uid)) == NULL) {
- fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error reading owner-info for %s: %s (%d)\n",
path->buf, strerror(errno), errno);
break;
}
@@ -230,7 +230,7 @@ static void scan_path(const char *base, const char *path)
struct stat st;
if (!dir) {
- fprintf(stderr, "Error opening directory %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error opening directory %s: %s (%d)\n",
path, strerror(errno), errno);
return;
}
@@ -254,7 +254,7 @@ static void scan_path(const char *base, const char *path)
strbuf_setlen(&pathbuf, pathlen);
strbuf_addstr(&pathbuf, ent->d_name);
if (stat(pathbuf.buf, &st)) {
- fprintf(stderr, "Error checking path %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error checking path %s: %s (%d)\n",
pathbuf.buf, strerror(errno), errno);
continue;
}
@@ -274,7 +274,7 @@ void scan_projects(const char *path, const char *projectsfile)
projects = fopen(projectsfile, "r");
if (!projects) {
- fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error opening projectsfile %s: %s (%d)\n",
projectsfile, strerror(errno), errno);
return;
}
@@ -286,7 +286,7 @@ void scan_projects(const char *path, const char *projectsfile)
scan_path(path, line.buf);
}
if ((err = ferror(projects))) {
- fprintf(stderr, "Error reading from projectsfile %s: %s (%d)\n",
+ fprintf(stderr, "[cgit] Error reading from projectsfile %s: %s (%d)\n",
projectsfile, strerror(err), err);
}
fclose(projects);