[CRIU] [PATCH] pie: log: parse %llx argument correctly
Pavel Emelyanov
xemul at parallels.com
Thu Jun 13 11:40:18 EDT 2013
On 06/11/2013 02:06 PM, Alexander Kartashov wrote:
> 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>
>
applied, thanks
More information about the CRIU
mailing list