summaryrefslogtreecommitdiff
path: root/pgsql.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-06 19:16:44 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-06 19:16:44 +0200
commit4219186504a1bc4b77a4223977fef8dd6c8bcf20 (patch)
treed42770cc249284e82d259ad8ba7b4555de33d8a0 /pgsql.c
parent9684e7f99a63ade1c30c354061db40fc43ae9a9c (diff)
parentb38a4c1ea8fdd1b114c278d62f93803757a23bba (diff)
downloadpgfuse-4219186504a1bc4b77a4223977fef8dd6c8bcf20.tar.gz
pgfuse-4219186504a1bc4b77a4223977fef8dd6c8bcf20.tar.bz2
Merge branch 'master' of github.com:andreasbaumann/pgfuse
Diffstat (limited to 'pgsql.c')
-rw-r--r--pgsql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pgsql.c b/pgsql.c
index 531df20..3198137 100644
--- a/pgsql.c
+++ b/pgsql.c
@@ -570,7 +570,7 @@ static int psql_write_block( PGconn *conn, const size_t block_size, const int64_
/* could actually be an assertion, as this can never happen */
if( offset + len > block_size ) {
- syslog( LOG_ERR, "Got a too big block write for file '%s', block '%20"PRIi64"': %20jd + %20zu > %d!",
+ syslog( LOG_ERR, "Got a too big block write for file '%s', block '%20"PRIi64"': %20jd + %20zu > %zu!",
path, block_no, offset, len, block_size );
return -EIO;
}
@@ -603,7 +603,7 @@ update_again:
/* we should never get here */
} else {
- syslog( LOG_ERR, "Unhandled write case for file '%s' in block '%"PRIi64"': offset: %jd, len: %zu, blocksize: %u",
+ syslog( LOG_ERR, "Unhandled write case for file '%s' in block '%"PRIi64"': offset: %jd, len: %zu, blocksize: %zu",
path, block_no, offset, len, block_size );
return -EIO;
}
@@ -698,7 +698,7 @@ int psql_write_buf( PGconn *conn, const size_t block_size, const int64_t id, con
return res;
}
if( res != block_size ) {
- syslog( LOG_ERR, "Partial write in file '%s' in block '%"PRIi64"' (%u instead of %u octets)",
+ syslog( LOG_ERR, "Partial write in file '%s' in block '%"PRIi64"' (%u instead of %zu octets)",
path, block_no, res, block_size );
return -EIO;
}