From: Vegard Nossum Date: Sat, 14 Mar 2009 11:08:50 +0000 (+0100) Subject: fix regression from "vsprintf: unify the format decoding layer for its 3 users" X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=adf26f84a62b492e002d3b75af671f23ddd3be0a;p=mv-sheeva.git fix regression from "vsprintf: unify the format decoding layer for its 3 users" Jeremy Fitzhardinge reported: > Change fef20d9c1380f04ba9492d6463148db07b413708, "vsprintf: > unify the format decoding layer for its 3 users", causes a > regression in xenbus which results in no devices getting > attached to a new domain. %.*s is broken - fix it. Reported-by: Jeremy Fitzhardinge Cc: Frederic Weisbecker Cc: Linus Torvalds Signed-off-by: Ingo Molnar --- diff --git a/lib/vsprintf.c b/lib/vsprintf.c index dc167437700..708e505ce81 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -843,7 +843,7 @@ precision: spec->precision = 0; } else if (*fmt == '*') { /* it's the next argument */ - spec->type = FORMAT_TYPE_WITDH; + spec->type = FORMAT_TYPE_PRECISION; return ++fmt - start; } }