summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-03-14 12:08:50 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-14 12:37:08 +0100
commitadf26f84a62b492e002d3b75af671f23ddd3be0a (patch)
tree4ce7c1f1a09b625960af9b9eabe1e15616747232 /lib
parent39e874f8afbdb3745e2406ce4ecbde9ac4cbaa78 (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 <jeremy@goop.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}