summaryrefslogtreecommitdiff
path: root/jrk.h
diff options
context:
space:
mode:
Diffstat (limited to 'jrk.h')
-rw-r--r--jrk.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/jrk.h b/jrk.h
index 3a133c8..e65c1cc 100644
--- a/jrk.h
+++ b/jrk.h
@@ -637,7 +637,7 @@ jrk_sb_fd_read_all(jrk_StringBuilder *sb, i32 fd)
u64 sz = jrk_fd_size(fd);
jrk_da_reserve(sb, sz);
if (read(fd, sb->items, sz) < 0) {
- jrk_errorv("jrk_sb_fd_read_all(%p, %d)", (void *)sb, fd);
+ jrk_eerrorv("jrk_sb_fd_read_all(%p, %d)", (void *)sb, fd);
return false;
}
@@ -651,7 +651,7 @@ jrk_sb_fd_write_all(jrk_StringBuilder *sb, i32 fd)
i64 result;
result = write(fd, (void *) sb->items, sb->count);
if (result < 0) {
- jrk_errorv("jrk_sb_fd_write_all(%p, %d)", (void *)sb, fd);
+ jrk_eerrorv("jrk_sb_fd_write_all(%p, %d)", (void *)sb, fd);
return -1;
}
@@ -691,7 +691,7 @@ jrk_fd_open_read(char *path)
i32 result = open(path, O_RDONLY);
if (result < 0) {
- jrk_errorv("jrk_fd_open_read(%s)", path);
+ jrk_eerrorv("jrk_fd_open_read(%s)", path);
return -1;
}
@@ -706,7 +706,7 @@ jrk_fd_open_write(char *path)
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (result < 0) {
- jrk_errorv("jrk_fd_open_write(%s)", path);
+ jrk_eerrorv("jrk_fd_open_write(%s)", path);
return -1;
}
@@ -721,7 +721,7 @@ jrk_fd_open_write_append(char *path)
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (result < 0) {
- jrk_errorv("jrk_fd_open_write_append(%s)", path);
+ jrk_eerrorv("jrk_fd_open_write_append(%s)", path);
return -1;
}