diff --git a/server.c b/server.c index bd49c0e..d51bd55 100644 --- a/server.c +++ b/server.c @@ -321,7 +321,7 @@ static FILE *open_file(char* file_path, int lock_type, char* mode) { pthread_rwlock_unlock(&mu); return NULL; } - printf("Open file in mode %d\n", mode); + printf("Open file in mode %s\n", mode); return fp; }