Skip to content

Commit

Permalink
fix regression from "vsprintf: unify the format decoding layer for it…
Browse files Browse the repository at this point in the history
…s 3 users"

Jeremy Fitzhardinge reported:

> Change fef20d9, "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>
  • Loading branch information
Vegard Nossum authored and Ingo Molnar committed Mar 14, 2009
1 parent 39e874f commit adf26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ static int format_decode(const char *fmt, struct printf_spec *spec)
spec->precision = 0;
} else if (*fmt == '*') {
/* it's the next argument */
spec->type = FORMAT_TYPE_WITDH;
spec->type = FORMAT_TYPE_PRECISION;
return ++fmt - start;
}
}
Expand Down

0 comments on commit adf26f8

Please sign in to comment.