From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: mingo@redhat.com, tglx@linuxtronix.de, hpa@zytor.com,
akpm@linux-foundation.org
Subject: [PATCH -next] x86: fix printk format
Date: Tue, 15 Apr 2008 15:16:31 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0804151514320.15946@shark.he.net> (raw)
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix gcc printk format warnings:
next-20080415/arch/x86/mm/mmio-mod.c: In function 'print_pte':
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c: At top level:
next-20080415/arch/x86/mm/mmio-mod.c:403: warning: 'downed_cpus' defined but not used
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
arch/x86/mm/mmio-mod.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- next-20080415.orig/arch/x86/mm/mmio-mod.c
+++ next-20080415/arch/x86/mm/mmio-mod.c
@@ -151,8 +151,9 @@ static void print_pte(unsigned long addr
"0x%08lx\n", address);
BUG();
}
- pr_info(NAME "pte for 0x%lx: 0x%lx 0x%lx\n", address, pte_val(*pte),
- pte_val(*pte) & _PAGE_PRESENT);
+ pr_info(NAME "pte for 0x%lx: 0x%llx 0x%llx\n", address,
+ (unsigned long long)pte_val(*pte),
+ (unsigned long long)pte_val(*pte) & _PAGE_PRESENT);
}
/*
next reply other threads:[~2008-04-15 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 22:16 Randy.Dunlap [this message]
2008-04-16 8:12 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0804151514320.15946@shark.he.net \
--to=rdunlap@xenotime.net \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linuxtronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®