[CRIU] [PATCH 2/3] log: Add pr_cont helper
Cyrill Gorcunov
gorcunov at openvz.org
Tue Aug 20 12:51:47 EDT 2013
Sometimes we split output printing in several pr_ calls, which
causes log engine to inject time delta at the front of the record.
For example
| (00.007461) Obtaining task stat ... (00.007497)
instead of ending delta there should be plain \n.
For this sake we introduce pr_cont() helper. It works similar
to what pr_cont in kernel does -- continues printing a line.
Note it's not multithread safe so don't use it outside of
dumping procedure. At least for now.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/log.h | 4 ++++
log.c | 14 ++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-log-Add-pr_cont-helper.patch
Type: text/x-patch
Size: 1345 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130820/9563e2f4/attachment.bin>
More information about the CRIU
mailing list