From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264560AbUGRWSR (ORCPT ); Sun, 18 Jul 2004 18:18:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264561AbUGRWSQ (ORCPT ); Sun, 18 Jul 2004 18:18:16 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:27822 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id S264560AbUGRWSE (ORCPT ); Sun, 18 Jul 2004 18:18:04 -0400 Date: Mon, 19 Jul 2004 00:18:02 +0200 From: Pavel Machek To: Patrick Mochel Cc: linux-kernel@vger.kernel.org Subject: Re: [14/25] Merge pmdisk and swsusp Message-ID: <20040718221802.GE31958@atrey.karlin.mff.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > +#ifdef DEBUG > +static void dump_info(void) > +{ > + printk(" swsusp: Version: %u\n",swsusp_info.version_code); > + printk(" swsusp: Num Pages: %ld\n",swsusp_info.num_physpages); > + printk(" swsusp: UTS Sys: %s\n",swsusp_info.uts.sysname); > + printk(" swsusp: UTS Node: %s\n",swsusp_info.uts.nodename); > + printk(" swsusp: UTS Release: %s\n",swsusp_info.uts.release); > + printk(" swsusp: UTS Version: %s\n",swsusp_info.uts.version); > + printk(" swsusp: UTS Machine: %s\n",swsusp_info.uts.machine); > + printk(" swsusp: UTS Domain: %s\n",swsusp_info.uts.domainname); > + printk(" swsusp: CPUs: %d\n",swsusp_info.cpus); > + printk(" swsusp: Image: %ld Pages\n",swsusp_info.image_pages); > + printk(" swsusp: Pagedir: %ld Pages\n",swsusp_info.pagedir_pages); > +} > +#else > +static void dump_info(void) > +{ > + > +} > +#endif Moving #ifdef inside function will result with a little less code... -- Horseback riding is like software... ...vgf orggre jura vgf serr.