From: deen Date: Mon, 6 Apr 2009 12:26:24 +0000 (+0000) Subject: Fix compile error when building v1_9_164 on Cray. X-Git-Tag: v1_9_167~31 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=742b9ac0e4714a70529429a5f6661878e58d6594;p=fs%2Flustre-release.git Fix compile error when building v1_9_164 on Cray. b=18855 i=sheng.yang i=edg --- diff --git a/lustre/llite/vvp_io.c b/lustre/llite/vvp_io.c index 9635fa5..a7653db 100644 --- a/lustre/llite/vvp_io.c +++ b/lustre/llite/vvp_io.c @@ -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; diff --git a/lustre/obdclass/cl_io.c b/lustre/obdclass/cl_io.c index 747ae11..e36bc31 100644 --- a/lustre/obdclass/cl_io.c +++ b/lustre/obdclass/cl_io.c @@ -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;