Joe Perches 4e310fda91 vsprintf: Change struct printf_spec.precision from s8 to s16
Commit ef0658f3de484bf9b173639cd47544584e01efa5 changed precision
from int to s8.

There is existing kernel code that uses a larger precision.

An example from the audit code:
	vsnprintf(...,..., " msg='%.1024s'", (char *)data);
which overflows precision and truncates to nothing.

Extending precision size fixes the audit system issue.

Other changes:

Change the size of the struct printf_spec.type from u16 to u8 so
sizeof(struct printf_spec) stays as small as possible.
Reorder the struct members so sizeof(struct printf_spec) remains 64 bits
without alignment holes.
Document the struct members a bit more.

Original-patch-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-14 10:32:35 -07:00
..
2010-03-06 11:26:35 -08:00
2009-11-20 20:13:39 +01:00
2009-11-03 16:06:53 +01:00
2009-06-18 13:04:05 -07:00
2009-06-16 19:47:51 -07:00
2009-12-28 10:41:39 +01:00
2009-12-14 23:55:33 +01:00
2010-02-03 17:39:50 +11:00
2009-10-01 21:17:49 +02:00
2009-12-15 08:53:33 -08:00
2010-01-11 09:34:05 -08:00
2010-03-06 11:26:35 -08:00