From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by ozlabs.org (Postfix) with ESMTP id D2CD9DDF55 for ; Sat, 31 Jan 2009 07:25:52 +1100 (EST) Date: Fri, 30 Jan 2009 14:25:44 -0600 From: Nathan Lynch To: Oren Laadan Subject: Re: [PATCH 1/3] powerpc: bare minimum checkpoint/restart implementation Message-ID: <20090130202544.GG6913@localdomain> References: <1233182478-27113-1-git-send-email-ntl@pobox.com> <1233182478-27113-2-git-send-email-ntl@pobox.com> <49814FA2.9060108@cs.columbia.edu> <20090129214035.GB6913@localdomain> <49824599.5030503@cs.columbia.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <49824599.5030503@cs.columbia.edu> Cc: containers@lists.osdl.org, linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Oren Laadan wrote: > > Nathan Lynch wrote: > > > > Oren Laadan wrote: > >> Nathan Lynch wrote: > >>> + pr_debug("%s: unexpected thread_hdr contents: 0x%lx\n", > >>> + __func__, (unsigned long)thread_hdr->unimplemented); > >> Given the macro for 'pr_fmt' in include/linux/checkpoint.h, the use of > >> __func__ is redunant. > > > > It seems to me that defining your own pr_fmt in a "public" header like > > that is inappropriate, or at least unconventional. Any file that > > happens to include linux/checkpoint.h will have any prior definitions > > of pr_fmt overridden, no? > > > > Hmmm.. didn't think of it this way. Using the pr_debug() there was yet > another feedback from LKML, and it seemed reasonable to me. Can you > think of a case where linux/checkpoint.h will happen to be included > in checkpoint-related code ? (Assume you meant "included in checkpoint-unrelated code") I could see checkpoint.h being included by files that don't exclusively deal with C/R. If you want a uniform debug statement format for C/R-related code, that's fine, but this isn't the way to do it. See the existing users (almost all in drivers/s390).