Whamcloud - gitweb
Fix compile error when building v1_9_164 on Cray.
authordeen <deen>
Mon, 6 Apr 2009 12:26:24 +0000 (12:26 +0000)
committerdeen <deen>
Mon, 6 Apr 2009 12:26:24 +0000 (12:26 +0000)
b=18855
i=sheng.yang
i=edg

lustre/llite/vvp_io.c
lustre/obdclass/cl_io.c

index 9635fa5..a7653db 100644 (file)
@@ -461,7 +461,7 @@ static int vvp_io_read_start(const struct lu_env *env,
         CLOBINVRNT(env, obj, ccc_object_invariant(obj));
         LASSERT(vio->cui_oneshot == 0);
 
-        CDEBUG(D_VFSTRACE, "read: -> [%lli, %lli)\n", pos, pos + cnt);
+        CDEBUG(D_VFSTRACE, "read: -> [%lli, %lli)\n", pos, pos + (long long)cnt);
 
         result = ccc_prep_size(env, obj, io, pos, tot, 1, &exceed);
         if (result != 0)
@@ -529,7 +529,7 @@ static int vvp_io_write_start(const struct lu_env *env,
                  */
                 pos = io->u.ci_wr.wr.crw_pos = i_size_read(inode);
 
-        CDEBUG(D_VFSTRACE, "write: [%lli, %lli)\n", pos, pos + cnt);
+        CDEBUG(D_VFSTRACE, "write: [%lli, %lli)\n", pos, pos + (long long)cnt);
 
         if (cl2vvp_io(env, ios)->cui_oneshot > 0)
                 result = 0;
index 747ae11..e36bc31 100644 (file)
@@ -228,7 +228,7 @@ int cl_io_rw_init(const struct lu_env *env, struct cl_io *io,
 
         LU_OBJECT_HEADER(D_VFSTRACE, env, &io->ci_obj->co_lu,
                          "io range: %i [%llu, %llu) %i %i\n",
-                         iot, (__u64)pos, (__u64)pos + count,
+                         iot, (__u64)pos, (__u64)(pos + count),
                          io->u.ci_rw.crw_nonblock, io->u.ci_wr.wr_append);
         io->u.ci_rw.crw_pos    = pos;
         io->u.ci_rw.crw_count  = count;