Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adf26f84 authored by Vegard Nossum's avatar Vegard Nossum Committed by Ingo Molnar
Browse files

fix regression from "vsprintf: unify the format decoding layer for its 3 users"



Jeremy Fitzhardinge reported:

> Change fef20d9c, "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: default avatarJeremy Fitzhardinge <jeremy@goop.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 39e874f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}