Re: [14/25] Merge pmdisk and swsusp

From: Pavel Machek
Date: Sun Jul 18 2004 - 17:20:10 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/