From b054133c87ec141b42302d777063063f101f57cb Mon Sep 17 00:00:00 2001 From: Aram Antonyan Date: Mon, 9 May 2016 18:19:53 +0000 Subject: [PATCH] Fixed compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When you compile project it returns following warning: > c_src/sqlite3_drv.c: In function ‘exec_async_command’: > c_src/sqlite3_drv.c:459:7: warning: too many arguments for format > [-Wformat-extra-args] LOG_ERROR("driver_async call failed", 0); This patch fixes mentioned warning. --- c_src/sqlite3_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/sqlite3_drv.c b/c_src/sqlite3_drv.c index c847337..f52ba45 100644 --- a/c_src/sqlite3_drv.c +++ b/c_src/sqlite3_drv.c @@ -456,7 +456,7 @@ static inline void exec_async_command( // see https://groups.google.com/d/msg/erlang-programming/XiFR6xxhGos/B6ARBIlvpMUJ if (status < 0) { - LOG_ERROR("driver_async call failed", 0); + LOG_ERROR("driver_async call failed: %ld", status); output_error(drv, SQLITE_ERROR, "driver_async call failed"); } } else {