]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gadget: Use vsprintf extention %pf with builtin_return_address
authorJoe Perches <joe@perches.com>
Tue, 28 Feb 2012 18:49:38 +0000 (10:49 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 6 Apr 2012 00:10:55 +0000 (17:10 -0700)
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>
drivers/usb/gadget/u_serial.c

index 6597a6813e438adbd192cb86f3675ddd368c2d7d..a553beeb86d5c91ff4b7d08a47bac2a723de1791 100644 (file)
@@ -920,7 +920,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 %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));
 
        spin_lock_irqsave(&port->port_lock, flags);