From: Damien Lespiau Date: Tue, 18 Mar 2014 17:43:08 +0000 (+0000) Subject: drm/i915: Use the correct format string modifier for ptrdiff_t X-Git-Tag: v3.15-rc1~51^2~18^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5081a538a565284fec5f30a937d98e460d5e780;p=pandora-kernel.git drm/i915: Use the correct format string modifier for ptrdiff_t When compiling on 32bits, I have the following warning: drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘int’ [-Wformat=] DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%d batchlen=%ld\n", The ptrdiff_t type has its own modifier: 't'. Cc: Brad Volkin Signed-off-by: Damien Lespiau Reviewed-by: Brad Volkin Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed