Skip to content

Commit fbd3aad

Browse files
andy-shevpmladek
authored andcommitted
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>
1 parent c6e049b commit fbd3aad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ amdgpu_devcoredump_read(char *buffer, loff_t offset, size_t count,
217217
drm_printf(&p, "version: " AMDGPU_COREDUMP_VERSION "\n");
218218
drm_printf(&p, "kernel: " UTS_RELEASE "\n");
219219
drm_printf(&p, "module: " KBUILD_MODNAME "\n");
220-
drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec,
221-
coredump->reset_time.tv_nsec);
220+
drm_printf(&p, "time: %ptSp\n", &coredump->reset_time);
222221

223222
if (coredump->reset_task_info.task.pid)
224223
drm_printf(&p, "process_name: %s PID: %d\n",

0 commit comments

Comments
 (0)