From: Geert Uytterhoeven Date: Thu, 28 Oct 2010 12:15:26 +0000 (-0600) Subject: drivers/block/z2ram.c: correct printing of sector_t X-Git-Tag: v2.6.37-rc1~75^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1fbd9210d5d172f951b1d21eb58383919c4d10d;p=pandora-kernel.git drivers/block/z2ram.c: correct printing of sector_t If CONFIG_LBDAF=y, `sector_t' becomes `u64' instead of `unsigned long': drivers/block/z2ram.c: In function ¡do_z2_request¢: drivers/block/z2ram.c:83: warning: format %lu expects type `long unsigned int', but argument 2 has type `sector_t' Hence always cast it to `unsigned long long' for printing. Also do the pr_err() dance, while we're at it. Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed