Mercurial > yaffs-ecoscentric
changeset 275:5cdfba3d1a65
Clean up ununed variable and formatting
| author | charles |
|---|---|
| date | Wed, 04 Feb 2009 21:40:27 +0000 |
| parents | 1a531028ad7b |
| children | 350a926b47c1 |
| files | yaffs_fs.c |
| diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -805,7 +805,6 @@ static int yaffs_write_end(struct file * { int ret = 0; void *addr, *kva; - pgoff_t index = pos >> PAGE_CACHE_SHIFT; uint32_t offset_into_page = pos & (PAGE_CACHE_SIZE -1); @@ -1055,7 +1054,7 @@ static ssize_t yaffs_file_write(struct f } else { T(YAFFS_TRACE_OS, (KERN_DEBUG - "yaffs_file_write about to write writing %d bytes" + "yaffs_file_write about to write writing %zu bytes" "to object %d at %d\n", n, obj->objectId, ipos)); } @@ -1063,7 +1062,7 @@ static ssize_t yaffs_file_write(struct f nWritten = yaffs_WriteDataToFile(obj, buf, ipos, n, 0); T(YAFFS_TRACE_OS, - (KERN_DEBUG "yaffs_file_write writing %d bytes, %d written at %d\n", + (KERN_DEBUG "yaffs_file_write writing %zu bytes, %d written at %d\n", n, nWritten, ipos)); if (nWritten > 0) { ipos += nWritten;
