diff --git a/lustre/liblustre/rw.c b/lustre/liblustre/rw.c
index 0811eae2a5350beb322f91c69054eccdfb0f08e2..c6e000f31604ddd68df9f9d5038c59c97d44d4fb 100644
--- a/lustre/liblustre/rw.c
+++ b/lustre/liblustre/rw.c
@@ -269,8 +269,8 @@ int llu_glimpse_size(struct inode *inode)
         st->st_atime = lvb.lvb_atime;
         st->st_ctime = lvb.lvb_ctime;
 
-        CDEBUG(D_DLMTRACE, "glimpse: size: %llu, blocks: "LPU64"\n",
-               (long long)st->st_size, st->st_blocks);
+        CDEBUG(D_DLMTRACE, "glimpse: size: "LPU64", blocks: "LPU64"\n",
+               (__u64)st->st_size, (__u64)st->st_blocks);
 
         RETURN(rc);
 }