From: serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Subject: [PATCH 00/17] Standardize c/r error reporting Date: Thu, 29 Oct 2009 15:54:25 -0500 Message-ID: <1256849682-858-1-git-send-email-serue@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org From: Serge E. Hallyn This patchset 1. defines ckpt_error() 2. allows users to pass a logfd into sys_checkpoint and sys_restart 3. Switches ckpt_write_err() to accepting a single enhanced format string, instead of two separate formats. 4. Has ckpt_write_err() call ckpt_error() to also log the error in the user-provided logfile and syslog. Every ckpt_error() message is prefixed by current's global pid, current's virtual pid, number of bytes read/written, and the ctx->errno. I'm sure we'll want another round if only to alter the format, but I'm finding it very useful as is. (As more callers are added I expect we'll want to add %(A) to the format to indicate active_pid should be printed). -serge