On 10/11/2013 10:14 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > The log message regex has been > > [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\+[0-9]{4}: [0-9]+: debug|info|warning|error : > > > Which is clearly not what it should have done. This caused the code to > skip over things which are not log messages. The solution is to simply > add brackets. > > A test case is also added to validate correctness. > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > .gitignore | 1 + > src/util/virlog.c | 5 +++- > tests/Makefile.am | 5 ++++ > tests/virlogtest.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 77 insertions(+), 1 deletion(-) > create mode 100644 tests/virlogtest.c ACK. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list