gpu: nvgpu: use %pS for function pointers

%pF is obsolete. Use %pS when debug printing function symbols. (One
print in kmem was already using this.)

Bug 3532466

Change-Id: Id3994abbcb0dc2495e69f3c872149c6ea5e3b5cb
Signed-off-by: Konsta Hölttä <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2667999
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Hölttä
2022-02-10 12:36:57 +02:00
committed by mobile promotions
parent 10c3c0ddbb
commit 81c220b95b
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@
/* Format and print a single function pointer to the specified seq_file. */ /* Format and print a single function pointer to the specified seq_file. */
static void __hal_print_op(struct seq_file *s, void *op_ptr) static void __hal_print_op(struct seq_file *s, void *op_ptr)
{ {
seq_printf(s, "%pF\n", op_ptr); seq_printf(s, "%pS\n", op_ptr);
} }
/* /*

View File

@@ -193,7 +193,7 @@ void kmem_print_mem_alloc(struct gk20a *g,
(void *)alloc->stack[i]); (void *)alloc->stack[i]);
__pstat(s, "\n"); __pstat(s, "\n");
#else #else
__pstat(s, "nvgpu-alloc: addr=0x%llx size=%ld src=%pF\n", __pstat(s, "nvgpu-alloc: addr=0x%llx size=%ld src=%pS\n",
alloc->addr, alloc->size, alloc->ip); alloc->addr, alloc->size, alloc->ip);
#endif #endif
} }

View File

@@ -119,7 +119,7 @@ static int nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
(void) vsnprintf(buf, sizeof(buf), fmt, args); (void) vsnprintf(buf, sizeof(buf), fmt, args);
nvgpu_err(g, "Timeout detected @ %pF %s", caller, buf); nvgpu_err(g, "Timeout detected @ %pS %s", caller, buf);
} }
return -ETIMEDOUT; return -ETIMEDOUT;
@@ -143,7 +143,7 @@ static int nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
(void) vsnprintf(buf, sizeof(buf), fmt, args); (void) vsnprintf(buf, sizeof(buf), fmt, args);
nvgpu_err(g, "No more retries @ %pF %s", caller, buf); nvgpu_err(g, "No more retries @ %pS %s", caller, buf);
} }
return -ETIMEDOUT; return -ETIMEDOUT;