diff options
author | Vegard Nossum <[email protected]> | 2009-03-14 12:08:50 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-03-14 12:37:08 +0100 |
commit | adf26f84a62b492e002d3b75af671f23ddd3be0a (patch) | |
tree | 4ce7c1f1a09b625960af9b9eabe1e15616747232 | |
parent | 39e874f8afbdb3745e2406ce4ecbde9ac4cbaa78 (diff) |
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 <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index dc1674377009..708e505ce81f 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; } } |