lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 16 Oct 2008 16:33:14 +0100
From:	Américo Wang <xiyou.wangcong@...il.com>
To:	LKML <linux-kernel@...r.kernel.org>
Cc:	Martin Mares <mj@....cz>, Andrew Morton <akpm@...l.org>
Subject: [Patch] kernel/resource.c: fix printk format warnings


Fixed the belowing warning:

/home/wangcong/Projects/linux-2.6/kernel/resource.c: In function
'__reserve_region_with_split':
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 3
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 4
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 6
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 7
has type 'resource_size_t'

Sigend-off-by: WANG Cong <wangcong@...ux.org>
Cc: Martin Mares <mj@....cz>

---
diff --git a/kernel/resource.c b/kernel/resource.c
index 414d6fc..d218736 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -550,8 +550,10 @@ static void __init __reserve_region_with_split(struct resource *root,
 
 	if (!res) {
 		printk(KERN_DEBUG "    __reserve_region_with_split: (%s) [%llx, %llx], res: (%s) [%llx, %llx]\n",
-			 conflict->name, conflict->start, conflict->end,
-			 name, start, end);
+			 conflict->name, (unsigned long long)conflict->start,
+			 (unsigned long long)conflict->end,
+			 name, (unsigned long long)start,
+			 (unsigned long long)end);
 
 		/* failed, split and try again */
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ