diff options
author | jimix@watson.ibm.com <jimix@watson.ibm.com> | 2006-05-17 16:00:35 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-05-19 05:02:19 (GMT) |
commit | 8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa (patch) | |
tree | e392faf5cc57559564da909f2bb2b65fcc18b516 /arch/powerpc/kernel/lparcfg.c | |
parent | 35dd54326e857f1648c7cc1028e8d5e1dbe04992 (diff) | |
download | linux-fsl-qoriq-8ae5b2801a0beb10a55a7ebd5140482e2f84c3fa.tar.xz |
[PATCH] powerpc: udbg_printf() formatting attribute
This patch allows the compiler to catch any printf-like mismatches for
udbg_printf(). After some brute force building I've only found issues
with my own code and lparcfg.c It could break some developers, but
IMHO that would be goodness.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/lparcfg.c')
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 2cbde86..c02deaa 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c @@ -521,10 +521,10 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, current_weight = (resource >> 5 * 8) & 0xFF; - pr_debug("%s: current_entitled = %lu, current_weight = %lu\n", + pr_debug("%s: current_entitled = %lu, current_weight = %u\n", __FUNCTION__, current_entitled, current_weight); - pr_debug("%s: new_entitled = %lu, new_weight = %lu\n", + pr_debug("%s: new_entitled = %lu, new_weight = %u\n", __FUNCTION__, *new_entitled_ptr, *new_weight_ptr); retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, |