Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16d9efa4 authored by Scott Wood's avatar Scott Wood Committed by Felipe Balbi
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Cc: linux-usb@vger.kernel.org
CC: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e39af88f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -912,7 +912,7 @@ static int gs_put_char(struct tty_struct *tty, unsigned char ch)
	unsigned long	flags;
	unsigned long	flags;
	int		status;
	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));
		port->port_num, tty, ch, __builtin_return_address(0));


	spin_lock_irqsave(&port->port_lock, flags);
	spin_lock_irqsave(&port->port_lock, flags);