diff options
-rw-r--r-- | device_info_procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device_info_procfs.c b/device_info_procfs.c index 0229eec..4e4ab03 100644 --- a/device_info_procfs.c +++ b/device_info_procfs.c | |||
@@ -20,7 +20,7 @@ static ssize_t nvdebug_reg32_read(struct file *f, char __user *buf, size_t size, | |||
20 | if ((read = nvdebug_readl(g, (uintptr_t)pde_data(file_inode(f)))) == -1) | 20 | if ((read = nvdebug_readl(g, (uintptr_t)pde_data(file_inode(f)))) == -1) |
21 | return -EOPNOTSUPP; | 21 | return -EOPNOTSUPP; |
22 | // 32 bit register will always take less than 16 characters to print | 22 | // 32 bit register will always take less than 16 characters to print |
23 | chars_written = scnprintf(out, 16, "%#0x\n", nvdebug_readl(g, read)); | 23 | chars_written = scnprintf(out, 16, "%#0x\n", read); |
24 | if (copy_to_user(buf, out, chars_written)) | 24 | if (copy_to_user(buf, out, chars_written)) |
25 | printk(KERN_WARNING "[nvdebug] %s: Unable to copy all data for %s\n", __func__, file_dentry(f)->d_name.name); | 25 | printk(KERN_WARNING "[nvdebug] %s: Unable to copy all data for %s\n", __func__, file_dentry(f)->d_name.name); |
26 | *off += chars_written; | 26 | *off += chars_written; |