Re: Trivial fixes for drivers/gpu/drm/i915/

From: Randy Dunlap
Date: Fri Jun 19 2009 - 17:23:24 EST


Marcel Holtmann wrote:
> Hi Krzysztof,
>
>> size_t is (some sort of) int on x86-32 and long on x86-64, eliminate
>> compiler warnings by casting to long.
>
> just using %zd or %zu would do the same trick and avoid stupid casts.

I.e., using %zd or %zu is the preferred fix.

--
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
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/