]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: escapes special characters in VIR_LOG_REGEX
authorGuannan Ren <gren@redhat.com>
Sat, 9 Mar 2013 14:49:16 +0000 (22:49 +0800)
committerGuannan Ren <gren@redhat.com>
Thu, 14 Mar 2013 05:28:11 +0000 (13:28 +0800)
In debug mode, the bug failed to start vm
error: Failed to start domain rhel5u9
error: internal error Out of space while reading console log output:
...

src/util/virlog.c

index 130bdff1c23bb072c94016762fec9292bab2495f..957d993a3be56bf968490f4238070fd5b2c3426a 100644 (file)
@@ -80,7 +80,7 @@ static regex_t *virLogRegex = NULL;
 
 
 #define VIR_LOG_DATE_REGEX "[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"
-#define VIR_LOG_TIME_REGEX "[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]+[0-9][0-9][0-9][0-9]"
+#define VIR_LOG_TIME_REGEX "[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9]\\+[0-9][0-9][0-9][0-9]"
 #define VIR_LOG_PID_REGEX "[0-9]+"
 #define VIR_LOG_LEVEL_REGEX "debug|info|warning|error"