From b38a4c1ea8fdd1b114c278d62f93803757a23bba Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 May 2012 13:21:51 +0200 Subject: small fixes --- pgsql.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pgsql.c') diff --git a/pgsql.c b/pgsql.c index 7ed2d12..d8b983e 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; } -- cgit v1.2.3-54-g00ecf