]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:19 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 09:24:13 +0000 (10:24 +0100)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

index 8a026bc9ea44f619872dda08dc2246145be70164..4e2fe6674db870ee50d30d225e6c778e8962ba7f 100644 (file)
@@ -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, "kernel: " UTS_RELEASE "\n");
        drm_printf(&p, "module: " KBUILD_MODNAME "\n");
-       drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec,
-                  coredump->reset_time.tv_nsec);
+       drm_printf(&p, "time: %ptSp\n", &coredump->reset_time);
 
        if (coredump->reset_task_info.task.pid)
                drm_printf(&p, "process_name: %s PID: %d\n",