[CRIU] [PATCH 1/2] pie: Warn about unknown for log-simple format

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


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

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



More information about the CRIU mailing list