From 6605a8999052701643d6ba761faada86efa85d85 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 3 Jun 2014 18:27:35 +0200 Subject: [PATCH] csync_statedb: Fix wrong % code in debug output %ld is for long, but int64_t is larger than long on windows --- csync/src/csync_statedb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c index 78372f688..f62adcb05 100644 --- a/csync/src/csync_statedb.c +++ b/csync/src/csync_statedb.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "c_lib.h" #include "csync_private.h" @@ -529,7 +530,7 @@ int csync_statedb_get_below_path( CSYNC *ctx, const char *path ) { if( rc != SQLITE_DONE ) { ctx->status_code = CSYNC_STATUS_TREE_ERROR; } else { - CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "%ld entries read below path %s from db.", cnt, path); + CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "%" PRId64 " entries read below path %s from db.", cnt, path); } sqlite3_finalize(stmt); SAFE_FREE(likepath);