[Pkg-owncloud-commits] [owncloud-client] 04/70: csync_statedb: Fix wrong % code in debug output

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6605a8999052701643d6ba761faada86efa85d85
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Jun 3 18:27:35 2014 +0200

    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 78372f6..f62adcb 100644
--- a/csync/src/csync_statedb.c
+++ b/csync/src/csync_statedb.c
@@ -32,6 +32,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <inttypes.h>
 
 #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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list