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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F275B20.6010105@xenotime.net>
Date:	Mon, 30 Jan 2012 19:08:16 -0800
From:	Randy Dunlap <rdunlap@...otime.net>
To:	Stephen Rothwell <sfr@...b.auug.org.au>
CC:	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	David Woodhouse <dwmw2@...radead.org>,
	linux-mtd@...ts.infradead.org,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH -next] mtd: fix nand/docg4.c printk format warnings

From: Randy Dunlap <rdunlap@...otime.net>

Fix printk format warnings for resource_size_t:

drivers/mtd/nand/docg4.c:1277:4: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/mtd/nand/docg4.c:1277:4: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
Cc:	David Woodhouse <dwmw2@...radead.org>
Cc:	linux-mtd@...ts.infradead.org
---
 drivers/mtd/nand/docg4.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-next-20120130.orig/drivers/mtd/nand/docg4.c
+++ linux-next-20120130/drivers/mtd/nand/docg4.c
@@ -1273,8 +1273,9 @@ static int __init probe_docg4(struct pla
 	virtadr = ioremap(r->start, resource_size(r));
 	if (!virtadr) {
 		dev_err(dev, "Diskonchip ioremap failed: "
-			"0x%x bytes at 0x%x\n",
-			resource_size(r), r->start);
+			"0x%llx bytes at 0x%llx\n",
+			(unsigned long long)resource_size(r),
+			(unsigned long long)r->start);
 		return -EIO;
 	}
 
--
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