Two small warnings (one to the point) removed when DEBUG=1

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@237 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-02-17 19:19:23 +00:00
1 parent 6e404a91d9
commit a9cc710cc7
1 file changed
+1 -4
+1 -4
View File
@@ -151,7 +151,7 @@ int i2cdev_lseek (struct inode *inode, struct file *file, off_t offset,
struct inode *inode = file->f_dentry->d_inode;
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,70)) */
printk("i2c_dev,o: i2c-%d lseek to %ld bytes relative to %d.\n",
MINOR(inode->i_rdev),offset,origin);
MINOR(inode->i_rdev),(long) offset,origin);
#endif /* DEBUG */
return -ESPIPE;
}
@@ -237,9 +237,6 @@ int i2cdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd,
int ver,datasize,res;
#ifdef DEBUG
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,70))
struct inode *inode = file->f_dentry->d_inode;
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,70)) */
printk("i2c_dev.o: i2c-%d ioctl, cmd: 0x%x, arg: %lx.\n",
MINOR(inode->i_rdev),cmd, arg);
#endif /* DEBUG */