Skip to content

Commit

Permalink
[MTD] fix printk warning
Browse files Browse the repository at this point in the history
gcc spits out this warning:

drivers/mtd/mtd_blkdevs.c: In function ‘do_blktrans_request’:
drivers/mtd/mtd_blkdevs.c:72: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’

This could be fixed any number of ways, including use of BUG().
rq_data_dir() only returns 0 or 1, so this entire case is superfluous.
I did the most simple fix.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Jeff Garzik authored and David Woodhouse committed Oct 1, 2006
1 parent 8a84fc1 commit 9a29230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
return 1;

default:
printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
printk(KERN_NOTICE "Unknown request %u\n", rq_data_dir(req));
return 0;
}
}
Expand Down

0 comments on commit 9a29230

Please sign in to comment.