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

Commit bfa346ad authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina
Browse files

gadget: Use vsprintf extention %pf with builtin_return_address



Emit the function name not the address when possible.

builtin_return_address() gives an address.  When building
a kernel with CONFIG_KALLSYMS, emit the actual function
name not the address.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 2975b023
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -920,7 +920,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 %p\n",
	pr_vdebug("gs_put_char: (%d,%p) char=0x%x, called from %pf\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);