Re: [RFC 10/22] m68k: Use generic show_mem()

From: Geert Uytterhoeven
Date: Thu Apr 03 2008 - 09:39:39 EST


On Thu, 3 Apr 2008, Johannes Weiner wrote:
> Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> writes:
> > The new version no longer prints
> >
> >> - printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
> >
>
> show_mem()
> show_free_areas()
> show_swap_cache_info()
> printk("Free swap = %lukB\n", nr_swap_pages << (PAGE_SHIFT - 10));
>
> > and
> >
> >> - printk("%d free pages\n",free);
> >
> > on m68k.
>
> show_free_areas() prints global_page_state(NR_FREE_PAGES). Isn't this
> the same?

Thanks, good to know...

So I suggest to add an additional (first) step to the consolidation: remove all
duplicates.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
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/