Fix debug mode compilation on 64-bit boxes. - susmb - mounting of SMB/CIFS shar… | |
git clone git://git.codemadness.org/susmb | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a189d444526ddcb91d622efc2b1c46d5e3cbcfb2 | |
parent 2103a2c22ace1ecc2258b2159f303a057983588e | |
Author: Geoff Johnstone <[email protected]> | |
Date: Mon, 4 Feb 2013 18:59:17 +0000 | |
Fix debug mode compilation on 64-bit boxes. | |
Diffstat: | |
M usmb_dir.c | 11 ++++++----- | |
M usmb_file.c | 8 ++++---- | |
2 files changed, 10 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/usmb_dir.c b/usmb_dir.c | |
@@ -165,8 +165,8 @@ int usmb_setxattr (const char *path, const char *name, cons… | |
if (NULL == url) | |
return -ENOMEM; | |
- DEBUG (fprintf (stderr, "setxattr (%s, %s, %p, %u, %x)\n", | |
- path, url, value, size, flags)); | |
+ DEBUG (fprintf (stderr, "setxattr (%s, %s, %p, %llu, %x)\n", | |
+ path, url, value, (unsigned long long)size, flags)); | |
int ret = smbc_getFunctionSetxattr (ctx) (ctx, url, name, | |
value, size, flags) ? -errno : 0; | |
free (url); | |
@@ -180,8 +180,8 @@ int usmb_getxattr (const char *path, const char *name, char… | |
if (NULL == url) | |
return -ENOMEM; | |
- DEBUG (fprintf (stderr, "getxattr (%s, %s, %p, %u)\n", | |
- path, url, value, size)); | |
+ DEBUG (fprintf (stderr, "getxattr (%s, %s, %p, %llu)\n", | |
+ path, url, value, (unsigned long long)size)); | |
int ret = smbc_getFunctionGetxattr (ctx) (ctx, url, name, | |
value, size) ? -errno : 0; | |
free (url); | |
@@ -195,7 +195,8 @@ int usmb_listxattr (const char *path, char *list, size_t si… | |
if (NULL == url) | |
return -ENOMEM; | |
- DEBUG (fprintf (stderr, "listxattr (%s, %p, %u)\n", url, list, size)); | |
+ DEBUG (fprintf (stderr, "listxattr (%s, %p, %llu)\n", | |
+ url, list, (unsigned long long)size)); | |
int ret = smbc_getFunctionListxattr (ctx) (ctx, url, list, size) ? -errno : … | |
free (url); | |
return ret; | |
diff --git a/usmb_file.c b/usmb_file.c | |
@@ -150,8 +150,8 @@ int usmb_read (const char *filename UNUSED, char *buff, siz… | |
assert (32768 >= len); | |
SMBCFILE *file = fd_to_smbcfile (fi->fh); | |
- DEBUG (fprintf (stderr, "read (%p, %p, %u, %lld) ", | |
- (void *)file, buff, len, off)); | |
+ DEBUG (fprintf (stderr, "read (%p, %p, %llu, %lld) ", | |
+ (void *)file, buff, (unsigned long long)len, (long long)off)… | |
if (0 > smbc_getFunctionLseek (ctx) (ctx, file, off, SEEK_SET)) | |
{ | |
@@ -169,8 +169,8 @@ int usmb_write (const char *filename UNUSED, const char *bu… | |
off_t off, struct fuse_file_info *fi) | |
{ | |
SMBCFILE *file = fd_to_smbcfile (fi->fh); | |
- DEBUG (fprintf (stderr, "write (%p, %p, len=%u, off=%lld) ", | |
- (void *)file, buff, len, off)); | |
+ DEBUG (fprintf (stderr, "write (%p, %p, len=%llu, off=%lld) ", | |
+ (void *)file, buff, (unsigned long long)len, (long long)off)… | |
if (0 > smbc_getFunctionLseek (ctx) (ctx, file, off, SEEK_SET)) | |
return -errno; |