From: Jason Gunthorpe Date: Mon, 17 Dec 2012 23:59:58 +0000 (-0800) Subject: lib/vsprintf.c: fix handling of %zd when using ssize_t X-Git-Tag: v3.8-rc1~74^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef12496022d5917cfe0b04cf8fd685fc6bc08400;p=pandora-kernel.git lib/vsprintf.c: fix handling of %zd when using ssize_t Documentation/printk-formats.txt says to use %zd for a ssize_t argument and some drivers do. Unfortunately this prints a positive number for negative values eg: tpm_tis 70030000.tpm_tis: tpm_transmit: tpm_send: error 4294967234 Add a case to va_args a ssize_t type if the interpretation should be signed. Tested on PPC32. Signed-off-by: Jason Gunthorpe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed