Patchwork [BUG:902,1/1] nfs: fix warning on 32 bit

login
register
Submitter Csaba Henk
Date 2010-05-10 15:00:37
Message ID <20100510150037.GA14744@acharya.lan>
Download mbox | patch
Permalink /patch/3247/
State Accepted
Delegated to: Anand Avati
Headers show

Comments

Csaba Henk - 2010-05-10 15:00:37
Signed-off-by: Csaba Henk <csaba@gluster.com>
---
 xlators/nfs/server/src/nfs3-helpers.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Shehjar Tikoo - 2010-05-11 09:43:44
Reviewed ok.
Thanks
-Shehjar

Csaba Henk wrote:
> Signed-off-by: Csaba Henk <csaba@gluster.com>
> ---
>  xlators/nfs/server/src/nfs3-helpers.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
> index e929bb3..feab7b5 100644
> --- a/xlators/nfs/server/src/nfs3-helpers.c
> +++ b/xlators/nfs/server/src/nfs3-helpers.c
> @@ -2211,9 +2211,9 @@ nfs3_log_read_res (uint32_t xid, nfsstat3 stat, int pstat, count3 count,
>          nfs3_stat_to_errstr (xid, "READ", stat, pstat, errstr);
>          if (vec)
>                  gf_log (GF_NFS3, GF_LOG_DEBUG, "%s, count: %"PRIu32", is_eof:"
> -                        " %d, vector: count: %d, len: %"PRIu64, errstr, count,
> +                        " %d, vector: count: %d, len: %zd", errstr, count,
>                          is_eof, veccount, vec->iov_len);
> -	else
> +        else
>                  gf_log (GF_NFS3, GF_LOG_DEBUG, "%s, count: %"PRIu32", is_eof:"
>                          " %d", errstr, count, is_eof);
>  }

Patch

diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index e929bb3..feab7b5 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -2211,9 +2211,9 @@  nfs3_log_read_res (uint32_t xid, nfsstat3 stat, int pstat, count3 count,
         nfs3_stat_to_errstr (xid, "READ", stat, pstat, errstr);
         if (vec)
                 gf_log (GF_NFS3, GF_LOG_DEBUG, "%s, count: %"PRIu32", is_eof:"
-                        " %d, vector: count: %d, len: %"PRIu64, errstr, count,
+                        " %d, vector: count: %d, len: %zd", errstr, count,
                         is_eof, veccount, vec->iov_len);
-	else
+        else
                 gf_log (GF_NFS3, GF_LOG_DEBUG, "%s, count: %"PRIu32", is_eof:"
                         " %d", errstr, count, is_eof);
 }