Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106626
b: refs/heads/master
c: 4ef584b
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jul 26, 2008
1 parent 834f9cd commit b98bc22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb2b180ca0469a51256d5ad62008b495345ad61f
refs/heads/master: 4ef584ba84125b67c17b5aded38e7783cd8cdef0
6 changes: 3 additions & 3 deletions trunk/drivers/char/nwflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ static ssize_t flash_read(struct file *file, char __user *buf, size_t size,
ssize_t ret;

if (flashdebug)
printk(KERN_DEBUG "flash_read: flash_read: offset=0x%lX, "
"buffer=%p, count=0x%X.\n", p, buf, count);
printk(KERN_DEBUG "flash_read: flash_read: offset=0x%llx, "
"buffer=%p, count=0x%zx.\n", *ppos, buf, size);
/*
* We now lock against reads and writes. --rmk
*/
if (mutex_lock_interruptible(&nwflash_mutex))
return -ERESTARTSYS;

ret = simple_read_from_buffer(buf, size, ppos, FLASH_BASE, gbFlashSize);
ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize);
mutex_unlock(&nwflash_mutex);

return ret;
Expand Down

0 comments on commit b98bc22

Please sign in to comment.