Skip to content

Commit 51d3654

Browse files
andy-shevpmladek
authored andcommitted
drm/xe: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Acked-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-9-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 0833646 commit 51d3654

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/xe/xe_devcoredump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ static ssize_t __xe_devcoredump_read(char *buffer, ssize_t count,
106106
drm_puts(&p, "module: " KBUILD_MODNAME "\n");
107107

108108
ts = ktime_to_timespec64(ss->snapshot_time);
109-
drm_printf(&p, "Snapshot time: %lld.%09ld\n", ts.tv_sec, ts.tv_nsec);
109+
drm_printf(&p, "Snapshot time: %ptSp\n", &ts);
110110
ts = ktime_to_timespec64(ss->boot_time);
111-
drm_printf(&p, "Uptime: %lld.%09ld\n", ts.tv_sec, ts.tv_nsec);
111+
drm_printf(&p, "Uptime: %ptSp\n", &ts);
112112
drm_printf(&p, "Process: %s [%d]\n", ss->process_name, ss->pid);
113113
xe_device_snapshot_print(xe, &p);
114114

0 commit comments

Comments
 (0)