]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: serial: %pf is only for function pointers
authorScott Wood <scottwood@freescale.com>
Thu, 12 Mar 2015 21:46:01 +0000 (16:46 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 13 Mar 2015 15:37:30 +0000 (10:37 -0500)
commit5e70e59d5bcee8d2bbf063962b66fd870f9f5a6a
tree575649a2a9cf6e8eb13f077c74926a6b4dcacf79
parentf18b9f99a895164b3ff4007628f36821731c4d84
usb: gadget: serial: %pf is only for function pointers

Use %ps for actual addresses, otherwise you'll get bad output
on arches like ppc64 where %pf expects a function descriptor
(which is not what __builtin_return_address returns).

Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: linux-usb@vger.kernel.org
CC: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/u_serial.c