Mercurial > yaffs-ecoscentric-gpl
changeset 407:36a72b45da7c
yaffs: Clean up 64-bit compilation
Change format fields to work properly with 64-bit compilation.
Change name of background thread to get rid of pointer calculations.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Mon, 26 Apr 2010 13:31:33 +1200 |
| parents | dc1a01765cbe |
| children | fc1d08b30cc0 |
| files | yaffs_fs.c |
| diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -1064,9 +1064,8 @@ static int yaffs_write_end(struct file * addr = kva + offset_into_page; T(YAFFS_TRACE_OS, - ("yaffs_write_end addr %x pos %x nBytes %d\n", - (unsigned) addr, - (int)pos, copied)); + ("yaffs_write_end addr %p pos %x nBytes %d\n", + addr,(unsigned)pos, copied)); ret = yaffs_file_write(filp, addr, copied, &pos); @@ -2094,12 +2093,12 @@ static int yaffs_BackgroundThread(void * static int yaffs_BackgroundStart(yaffs_Device *dev) { int retval = 0; - struct yaffs_LinuxContext *context = yaffs_DeviceToContext(dev); context->bgRunning = 1; - context->bgThread = kthread_run(yaffs_BackgroundThread,(void *)dev,"yaffs_%x",(unsigned)dev); + context->bgThread = kthread_run(yaffs_BackgroundThread, + (void *)dev,"yaffs-bg"); if(IS_ERR(context->bgThread)){ retval = PTR_ERR(context->bgThread);
