aboutsummaryrefslogtreecommitdiffstats
path: root/src/fbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbuf.c')
-rw-r--r--src/fbuf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fbuf.c b/src/fbuf.c
index 55b8230..c4243e6 100644
--- a/src/fbuf.c
+++ b/src/fbuf.c
@@ -86,7 +86,7 @@ error2:
close(fd);
error:
rc = -errno;
- fprintf(stderr, "can't read file %s: %m", name);
+ fprintf(stderr, "can't read file %s: %m\n", name);
fb->saved = fb->used = fb->size = 0;
return rc;
}
@@ -134,7 +134,7 @@ fbuf_open(
error:
rc = -errno;
- fprintf(stderr, "can't open file %s: %m", name);
+ fprintf(stderr, "can't open file %s: %m\n", name);
fbuf_close(fb);
return rc;
}
@@ -179,7 +179,7 @@ fbuf_sync(
error:
rc = -errno;
- fprintf(stderr, "sync of file %s failed: %m", fb->name);
+ fprintf(stderr, "sync of file %s failed: %m\n", fb->name);
return rc;
}
@@ -196,7 +196,7 @@ fbuf_ensure_capacity(
capacity = get_asz(count);
buffer = realloc(fb->buffer, capacity);
if (buffer == NULL) {
- fprintf(stderr, "alloc %u for file %s failed: %m", capacity, fb->name);
+ fprintf(stderr, "alloc %u for file %s failed: %m\n", capacity, fb->name);
return -ENOMEM;
}
fb->buffer = buffer;
@@ -266,7 +266,7 @@ fbuf_identify(
/* bad identification */
errno = ENOKEY;
- fprintf(stderr, "identification of file %s failed: %m", fb->name);
+ fprintf(stderr, "identification of file %s failed: %m\n", fb->name);
return -ENOKEY;
}