diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-05-01 10:43:03 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-05-01 10:43:03 +0200 |
commit | 0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3 (patch) | |
tree | 8e8729d0d2d386743c7e8cf1b9e9a3d854689bf2 /pgfuse.c | |
parent | d04a9d1fe99eb0e1661cf7f2169b3f7dd0792efc (diff) | |
download | pgfuse-0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3.tar.gz pgfuse-0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3.tar.bz2 |
removed a lot of casts around off_t and size_t
Diffstat (limited to 'pgfuse.c')
-rw-r--r-- | pgfuse.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -741,8 +741,8 @@ static int pgfuse_write( const char *path, const char *buf, size_t size, PGconn *conn; if( data->verbose ) { - syslog( LOG_INFO, "Write to '%s' from offset %d, size %d on '%s', thread #%u", - path, (unsigned int)offset, (unsigned int)size, data->mountpoint, + syslog( LOG_INFO, "Write to '%s' from offset %jd, size %zu on '%s', thread #%u", + path, offset, size, data->mountpoint, THREAD_ID ); } @@ -800,8 +800,8 @@ static int pgfuse_read( const char *path, char *buf, size_t size, PGconn *conn; if( data->verbose ) { - syslog( LOG_INFO, "Read to '%s' from offset %d, size %d on '%s', thread #%u", - path, (unsigned int)offset, (unsigned int)size, data->mountpoint, + syslog( LOG_INFO, "Read to '%s' from offset %jd, size %zu on '%s', thread #%u", + path, offset, size, data->mountpoint, THREAD_ID ); } @@ -833,8 +833,8 @@ static int pgfuse_truncate( const char* path, off_t offset ) PGconn *conn; if( data->verbose ) { - syslog( LOG_INFO, "Truncate of '%s' to size '%d' on '%s', thread #%u", - path, (unsigned int)offset, data->mountpoint, THREAD_ID ); + syslog( LOG_INFO, "Truncate of '%s' to size '%jd' on '%s', thread #%u", + path, offset, data->mountpoint, THREAD_ID ); } ACQUIRE( conn ); @@ -888,8 +888,8 @@ static int pgfuse_ftruncate( const char *path, off_t offset, struct fuse_file_in PGconn *conn; if( data->verbose ) { - syslog( LOG_INFO, "Truncate of '%s' to size '%d' on '%s', thread #%u", - path, (unsigned int)offset, data->mountpoint, + syslog( LOG_INFO, "Truncate of '%s' to size '%jd' on '%s', thread #%u", + path, offset, data->mountpoint, THREAD_ID ); } |