Re: [PATCH] MTD: fix printk warning

From: David Woodhouse
Date: Sun Oct 01 2006 - 13:24:50 EST


On Sun, 2006-10-01 at 12:16 -0400, Jeff Garzik wrote:
> 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â

> - printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
> + printk(KERN_NOTICE "Unknown request %u\n", rq_data_dir(req));

Applied; thanks. I'd applied it once already and reverted it because it
seemed wrong -- but now the change which made it necessary is upstream.

--
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/