mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
fix regression from "vsprintf: unify the format decoding layer for its 3 users"
Jeremy Fitzhardinge reported:
> Change fef20d9c13
, "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>
This commit is contained in:
parent
39e874f8af
commit
adf26f84a6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user