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: <4EF2424D.4020200@xenotime.net>
Date:	Wed, 21 Dec 2011 12:32:13 -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>,
	linux-usb <linux-usb@...r.kernel.org>, Greg KH <gregkh@...e.de>,
	Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] usb: fix renesas mod_gadget printk format warning

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

Fix printk format warning:

drivers/usb/renesas_usbhs/mod_gadget.c:188:3: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'dma_addr_t'

Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
---

Also applies to mainline.

 drivers/usb/renesas_usbhs/mod_gadget.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20111221.orig/drivers/usb/renesas_usbhs/mod_gadget.c
+++ linux-next-20111221/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -185,7 +185,8 @@ static int usbhsg_dma_map(struct device
 	}
 
 	if (dma_mapping_error(dev, pkt->dma)) {
-		dev_err(dev, "dma mapping error %x\n", pkt->dma);
+		dev_err(dev, "dma mapping error %llx\n",
+				(unsigned long long)pkt->dma);
 		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