From: Josh Triplett Date: Wed, 21 Aug 2013 00:20:13 +0000 (-0700) Subject: turbostat: Don't attempt to printf an off_t with %zx X-Git-Tag: v3.14-rc1~6^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e9c6bc7fb6ffc32d83bc133e4a7389125e8eb0a;p=pandora-kernel.git turbostat: Don't attempt to printf an off_t with %zx turbostat uses the format %zx to print an off_t. However, %zx wants a size_t, not an off_t. On 32-bit targets, those refer to different types, potentially even with different sizes. Use %llx and a cast instead, since printf does not have a length modifier for off_t. Without this patch, when compiling for a 32-bit target: turbostat.c: In function 'get_msr': turbostat.c:231:3: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'off_t' [-Wformat] Signed-off-by: Josh Triplett Signed-off-by: Len Brown --- Reading git-diff-tree failed