aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-03-14 07:08:50 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-14 07:37:08 -0400
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 dc1674377009..708e505ce81f 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -843,7 +843,7 @@ precision:
843 spec->precision = 0; 843 spec->precision = 0;
844 } else if (*fmt == '*') { 844 } else if (*fmt == '*') {
845 /* it's the next argument */ 845 /* it's the next argument */
846 spec->type = FORMAT_TYPE_WITDH; 846 spec->type = FORMAT_TYPE_PRECISION;
847 return ++fmt - start; 847 return ++fmt - start;
848 } 848 }
849 } 849 }