mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amdgpu: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-6-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
committed by
Petr Mladek
parent
c6e049b621
commit
fbd3aad6e0
@@ -217,8 +217,7 @@ amdgpu_devcoredump_read(char *buffer, loff_t offset, size_t count,
|
|||||||
drm_printf(&p, "version: " AMDGPU_COREDUMP_VERSION "\n");
|
drm_printf(&p, "version: " AMDGPU_COREDUMP_VERSION "\n");
|
||||||
drm_printf(&p, "kernel: " UTS_RELEASE "\n");
|
drm_printf(&p, "kernel: " UTS_RELEASE "\n");
|
||||||
drm_printf(&p, "module: " KBUILD_MODNAME "\n");
|
drm_printf(&p, "module: " KBUILD_MODNAME "\n");
|
||||||
drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec,
|
drm_printf(&p, "time: %ptSp\n", &coredump->reset_time);
|
||||||
coredump->reset_time.tv_nsec);
|
|
||||||
|
|
||||||
if (coredump->reset_task_info.task.pid)
|
if (coredump->reset_task_info.task.pid)
|
||||||
drm_printf(&p, "process_name: %s PID: %d\n",
|
drm_printf(&p, "process_name: %s PID: %d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user