From dc8297b28aa72a9a3e4dbe6c356a3c606bedd30b Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 8 Nov 2001 19:11:49 +0000 Subject: [PATCH] large file printk cleanups --- lustre/obdclass/proc_lustre.c | 1 + lustre/obdfs/file.c | 4 ++-- lustre/obdfs/rw.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/obdclass/proc_lustre.c b/lustre/obdclass/proc_lustre.c index f83e7a6..cf68e0d 100644 --- a/lustre/obdclass/proc_lustre.c +++ b/lustre/obdclass/proc_lustre.c @@ -36,6 +36,7 @@ * function that is exported to other modules. */ +#define EXPORT_SYMTAB #include #include #include diff --git a/lustre/obdfs/file.c b/lustre/obdfs/file.c index f6abf6f..138ca56 100644 --- a/lustre/obdfs/file.c +++ b/lustre/obdfs/file.c @@ -63,8 +63,8 @@ static ssize_t obdfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos) { ssize_t retval; - CDEBUG(D_INFO, "Writing inode %ld, %d bytes, offset %ld\n", - file->f_dentry->d_inode->i_ino, count, (long)*ppos); + CDEBUG(D_INFO, "Writing inode %ld, %d bytes, offset %Ld\n", + file->f_dentry->d_inode->i_ino, count, ppos); retval = generic_file_write(file, buf, count, ppos); CDEBUG(D_INFO, "Wrote %d\n", retval); diff --git a/lustre/obdfs/rw.c b/lustre/obdfs/rw.c index 4daede5..c708bf7 100644 --- a/lustre/obdfs/rw.c +++ b/lustre/obdfs/rw.c @@ -169,8 +169,8 @@ static int obdfs_commit_page(struct page *page, int create, int from, int to) oa->o_valid = OBD_MD_FLNOTOBD; obdfs_from_inode(oa, inode); - CDEBUG(D_INODE, "commit_page writing (at %d) to %d, count %ld\n", - from, to, (unsigned long )count); + CDEBUG(D_INODE, "commit_page writing (at %d) to %d, count %Ld\n", + from, to, count); err = IOPS(inode, brw)(WRITE, IID(inode), num_obdo, &oa, &bufs_per_obdo, &page, &count, &offset, &flags); -- 1.8.3.1