From 759b520967ae3464b2281c6b45fa3d1e06ce8bba Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 25 Jul 2020 15:47:32 +0200 Subject: incorrect print fmt --- src/std/file.c | 4 ++-- 1 file 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; } -- cgit v1.2.3