mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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:
committed by
mobile promotions
parent
10c3c0ddbb
commit
81c220b95b
@@ -23,7 +23,7 @@
|
||||
/* Format and print a single function pointer to the specified seq_file. */
|
||||
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -193,7 +193,7 @@ void kmem_print_mem_alloc(struct gk20a *g,
|
||||
(void *)alloc->stack[i]);
|
||||
__pstat(s, "\n");
|
||||
#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);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ static int nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
|
||||
|
||||
(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;
|
||||
@@ -143,7 +143,7 @@ static int nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
|
||||
|
||||
(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;
|
||||
|
||||
Reference in New Issue
Block a user