Re: [PATCH] MTD: fix printk warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux