aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-25 15:47:32 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 15:47:32 +0200
commit759b520967ae3464b2281c6b45fa3d1e06ce8bba (patch)
tree0f66166e72f96596f1fd558dcd058fbabbed04af
parentb6b3760e19716c574ca9a0ec0bacfe5518b39f77 (diff)
incorrect print fmt
-rw-r--r--src/std/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/std/file.c b/src/std/file.c
index 3ca94b0..bd0d8cc 100644
--- a/src/std/file.c
+++ b/src/std/file.c
@@ -183,7 +183,7 @@ typedef enum {
static CHECK_RESULT int file_get_type(const char *filepath, FileType *type) {
struct stat file_stats;
if(stat(filepath, &file_stats) == -1) {
- amal_log_error("file_get_type: %s failed: ", filepath, strerror(errno));
+ amal_log_error("file_get_type: %s failed, error: %s", filepath, strerror(errno));
return -1;
}
@@ -213,7 +213,7 @@ int read_whole_file(const char *filepath, Buffer *data_result) {
if(!file) {
int error;
error = errno;
- amal_log_error("read_whole_file: %s failed: ", filepath, strerror(error));
+ amal_log_error("read_whole_file: %s failed, error: %s", filepath, strerror(error));
return error;
}