[CRIU] [PATCH] pie: log: parse %llx argument correctly
Alexander Kartashov
alekskartashov at parallels.com
Tue Jun 11 06:06:05 EDT 2013
On 06/11/2013 11:07 AM, Chanho Park wrote:
> A x64 only converts PRIx64 to %lx. However, ARM will convert it to %llx.
> Thus, we have to peek one more character and skip it if next is 'l'.
>
> Signed-off-by: Chanho Park <chanho61.park at samsung.com>
> Signed-off-by: Myungjoo Ham <myungjoo.ham at samsung.com>
> ---
> pie/log-simple.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/pie/log-simple.c b/pie/log-simple.c
> index 1705d1e..701740d 100644
> --- a/pie/log-simple.c
> +++ b/pie/log-simple.c
> @@ -226,6 +226,8 @@ void print_on_level(unsigned int loglevel, const char *format, ...)
> if (*s == 'l') {
> along = 1;
> s++;
> + if (*s == 'l')
> + s++;
> }
>
> switch (*s) {
The patch is
Acked-by: Alexander Kartashov <alekskartashov at parallels.com>
--
Sincerely yours,
Alexander Kartashov
Intern
Core team
www.parallels.com
Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com
More information about the CRIU
mailing list