[CRIU] [PATCH] pie: log: parse %llx argument correctly
Chanho Park
chanho61.park at samsung.com
Tue Jun 11 03:07:02 EDT 2013
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) {
--
1.7.9.5
More information about the CRIU
mailing list