diff --git a/fs/locks.c b/fs/locks.c index 326e9eeb92ce..129e61af1447 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -2257,7 +2257,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl, inode->i_sb->s_id, inode->i_ino); #else /* userspace relies on this representation of dev_t ;-( */ - seq_printf(f, "%d %02x:%02x:%ld ", fl_pid, + seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), inode->i_ino); #endif