diff options
author | Joe Perches <joe@perches.com> | 2012-02-28 13:49:38 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-05 20:10:55 -0400 |
commit | bfa346ad6b4dd88c19f560b5b0527d93fa05833b (patch) | |
tree | b31c717cefb8abdb8f1bf9dd19ce3afbce93ffa2 /drivers/usb/gadget/u_serial.c | |
parent | 2975b0231600f4628512d51550a4e2cfde7d6358 (diff) |
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: Joe Perches <joe@perches.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/gadget/u_serial.c')
-rw-r--r-- | drivers/usb/gadget/u_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index 6597a6813e43..a553beeb86d5 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c | |||
@@ -920,7 +920,7 @@ static int gs_put_char(struct tty_struct *tty, unsigned char ch) | |||
920 | unsigned long flags; | 920 | unsigned long flags; |
921 | int status; | 921 | int status; |
922 | 922 | ||
923 | pr_vdebug("gs_put_char: (%d,%p) char=0x%x, called from %p\n", | 923 | pr_vdebug("gs_put_char: (%d,%p) char=0x%x, called from %pf\n", |
924 | port->port_num, tty, ch, __builtin_return_address(0)); | 924 | port->port_num, tty, ch, __builtin_return_address(0)); |
925 | 925 | ||
926 | spin_lock_irqsave(&port->port_lock, flags); | 926 | spin_lock_irqsave(&port->port_lock, flags); |