summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2015-03-12 22:46:01 +0100
committerFelipe Balbi <balbi@ti.com>2015-03-13 16:37:30 +0100
commit16d9efa4b3db0ab69605ff4d03d707d0210f4bf7 (patch)
tree575649a2a9cf6e8eb13f077c74926a6b4dcacf79 /drivers/usb/gadget
parentusb: dwc2: rework initialization of host and gadget in dual-role mode (diff)
downloadlinux-16d9efa4b3db0ab69605ff4d03d707d0210f4bf7.tar.xz
linux-16d9efa4b3db0ab69605ff4d03d707d0210f4bf7.zip
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/u_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c
index 491082aaf103..89179ab20c10 100644
--- a/drivers/usb/gadget/function/u_serial.c
+++ b/drivers/usb/gadget/function/u_serial.c
@@ -912,7 +912,7 @@ static int gs_put_char(struct tty_struct *tty, unsigned char ch)
unsigned long flags;
int status;
- pr_vdebug("gs_put_char: (%d,%p) char=0x%x, called from %pf\n",
+ pr_vdebug("gs_put_char: (%d,%p) char=0x%x, called from %ps\n",
port->port_num, tty, ch, __builtin_return_address(0));
spin_lock_irqsave(&port->port_lock, flags);