* [PATCH] print the number of bytes processed in ckpt_error()
@ 2009-10-23 17:05 Serge E. Hallyn
[not found] ` <20091023170529.GA23079-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2009-10-23 17:05 UTC (permalink / raw)
To: Oren Laadan; +Cc: Linux Containers
This should be useful at restart to indicate how much we have
processed before running into an error.
This only adds it to the user log for now, bc the syslog
printing macro is expected to totally change anyway.
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
checkpoint/sys.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checkpoint/sys.c b/checkpoint/sys.c
index 1840f90..a7fe1f8 100644
--- a/checkpoint/sys.c
+++ b/checkpoint/sys.c
@@ -361,7 +361,7 @@ void ckpt_log_error(struct ckpt_ctx *ctx, char *fmt, ...)
return;
file = ctx->logfile;
- count = snprintf(buf, 200, "%d:%d ", mypid, tpid);
+ count = snprintf(buf, 200, "%d:%d@%d ", mypid, tpid, ctx->total);
if (count > 200)
return; /* not possible */
fs = get_fs();
--
1.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] print the number of bytes processed in ckpt_error()
[not found] ` <20091023170529.GA23079-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-10-23 17:42 ` Matt Helsley
0 siblings, 0 replies; 2+ messages in thread
From: Matt Helsley @ 2009-10-23 17:42 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: Linux Containers
On Fri, Oct 23, 2009 at 12:05:29PM -0500, Serge E. Hallyn wrote:
> This should be useful at restart to indicate how much we have
> processed before running into an error.
>
> This only adds it to the user log for now, bc the syslog
> printing macro is expected to totally change anyway.
>
> Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Should be quite useful for users trying to pinpoint the source of
restart problems in their checkpoint images.
Acked-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
> checkpoint/sys.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/checkpoint/sys.c b/checkpoint/sys.c
> index 1840f90..a7fe1f8 100644
> --- a/checkpoint/sys.c
> +++ b/checkpoint/sys.c
> @@ -361,7 +361,7 @@ void ckpt_log_error(struct ckpt_ctx *ctx, char *fmt, ...)
> return;
> file = ctx->logfile;
>
> - count = snprintf(buf, 200, "%d:%d ", mypid, tpid);
> + count = snprintf(buf, 200, "%d:%d@%d ", mypid, tpid, ctx->total);
> if (count > 200)
> return; /* not possible */
> fs = get_fs();
> --
> 1.6.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-23 17:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 17:05 [PATCH] print the number of bytes processed in ckpt_error() Serge E. Hallyn
[not found] ` <20091023170529.GA23079-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-23 17:42 ` Matt Helsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox