[CRIU] [PATCH 2/2] pie: Support %p printing

Pavel Emelyanov xemul at parallels.com
Mon Nov 2 08:14:39 PST 2015


The restorer prints pointer addresses in error codes

Reported-by: Artem Kuzmitskiy <artem.kuzmitskiy at gmail.com>
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 pie/log-simple.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pie/log-simple.c b/pie/log-simple.c
index c4efb87..1cc877d 100644
--- a/pie/log-simple.c
+++ b/pie/log-simple.c
@@ -243,6 +243,9 @@ void sbuf_printf(struct simple_buf *b, const char *format, va_list args)
 			else
 				print_hex(va_arg(args, unsigned int), b);
 			break;
+		case 'p':
+			print_hex_l((unsigned long)va_arg(args, void *), b);
+			break;
 		default:
 			print_string("UNKNOWN FORMAT ", b);
 			sbuf_putc(b, *s);
-- 
1.9.3




More information about the CRIU mailing list