login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
11
Re: [PATCH] mm: Fix printk format strings
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Vegard Nossum <vegard.nossum@...>
Cc: Nick Piggin <nickpiggin@...>, Hugh Dickins <hugh@...>, <linux-kernel@...>
Subject:
Re: [PATCH] mm: Fix printk format strings
Date: Thursday, October 11, 2007 - 2:53 am
On Thu, 11 Oct 2007 08:47:01 +0200 Vegard Nossum <vegard.nossum@gmail.com> wrote:
quoted text
> This makes sure printk format strings contain no more than a single > line. > > Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> > --- > mm/page_alloc.c | 20 +++++++++++--------- > 1 files changed, 11 insertions(+), 9 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 1a8c595..96f0b33 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -198,13 +198,15 @@ static inline int bad_range(struct zone *zone, struct page *page) > > static void bad_page(struct page *page) > { > - printk(KERN_EMERG "Bad page state in process '%s'\n" > - KERN_EMERG "page:%p flags:0x%0*lx mapping:%p mapcount:%d count:%d\n" > - KERN_EMERG "Trying to fix it up, but a reboot is needed\n" > - KERN_EMERG "Backtrace:\n", > - current->comm, page, (int)(2*sizeof(unsigned long)), > - (unsigned long)page->flags, page->mapping, > + printk(KERN_EMERG "Bad page state in process '%s'\n", current->comm); > + printk(KERN_EMERG > + "page:%p flags:0x%0*lx mapping:%p mapcount:%d count:%d\n", > + page, (int) (2 * sizeof(unsigned long)), > + (unsigned long) page->flags, page->mapping, > page_mapcount(page), page_count(page)); > + printk(KERN_EMERG "Trying to fix it up, but a reboot is needed\n"); > + printk(KERN_EMERG "Backtrace:\n"); > + > dump_stack(); > page->flags &= ~(1 << PG_lru | > 1 << PG_private | > @@ -1575,13 +1577,13 @@ void show_free_areas(void) > } > } > > - printk("Active:%lu inactive:%lu dirty:%lu writeback:%lu unstable:%lu\n" > - " free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n", > + printk("Active:%lu inactive:%lu dirty:%lu writeback:%lu unstable:%lu\n", > global_page_state(NR_ACTIVE), > global_page_state(NR_INACTIVE), > global_page_state(NR_FILE_DIRTY), > global_page_state(NR_WRITEBACK), > - global_page_state(NR_UNSTABLE_NFS), > + global_page_state(NR_UNSTABLE_NFS)); > + printk(" free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n", > global_page_state(NR_FREE_PAGES), > global_page_state(NR_SLAB_RECLAIMABLE) + > global_page_state(NR_SLAB_UNRECLAIMABLE),
I don't understand the reason for this change. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] mm: Fix printk format strings
, Vegard Nossum
, (Thu Oct 11, 2:47 am)
Re: [PATCH] mm: Fix printk format strings
, Andrew Morton
, (Thu Oct 11, 2:53 am)
Re: [PATCH] mm: Fix printk format strings
, Vegard Nossum
, (Thu Oct 11, 3:04 am)
Re: [PATCH] mm: Fix printk format strings
, Andrew Morton
, (Thu Oct 11, 3:13 am)
Re: [PATCH] mm: Fix printk format strings
, Vegard Nossum
, (Thu Oct 11, 3:37 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Theodore Tso
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Christoph Hellwig
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
Andi Kleen
[PATCH] [0/45] x86 2.6.24 patches review I
git
:
openbsd-misc
:
linux-netdev
:
Wenji Wu
RE: A Linux TCP SACK Question
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Colocation donated by:
Who's online
There are currently
5 users
and
841 guests
online.
Online users
strcmp
familyguyqzxli
countyjailinma
vv_ivango
calemonlawbjga
Syndicate