Commit 2975b0231600f4628512d51550a4e2cfde7d6358

Authored by Joe Perches
Committed by Jiri Kosina
1 parent 9c017abc50

scsi: 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: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/scsi/esp_scsi.c
... ... @@ -1000,7 +1000,7 @@
1000 1000  
1001 1001 static void esp_schedule_reset(struct esp *esp)
1002 1002 {
1003   - esp_log_reset("ESP: esp_schedule_reset() from %p\n",
  1003 + esp_log_reset("ESP: esp_schedule_reset() from %pf\n",
1004 1004 __builtin_return_address(0));
1005 1005 esp->flags |= ESP_FLAG_RESETTING;
1006 1006 esp_event(esp, ESP_EVENT_RESET);