Revert "[MTD] blkdev helper code: fix printk format warning"
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 22 Sep 2006 10:05:42 +0000 (11:05 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 22 Sep 2006 10:05:42 +0000 (11:05 +0100)
This reverts commit 668040fcd1e06fc3e68a92708cbdfa5a52c37d3c.

The 'flags' field of the struct request is 'unsigned long'. Quite
how Randy came to see 'long int format, different type arg' I don't
know, but it doesn't seem to be the case any more.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtd_blkdevs.c

index 302bed5f08452b483813b33393f83755bd3c4c31..458d3c8ae1eee3904fa34cbd414d44e6a28633b3 100644 (file)
@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
                return 1;
 
        default:
-               printk(KERN_NOTICE "Unknown request %d\n", rq_data_dir(req));
+               printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
                return 0;
        }
 }