[Public]

> -----Original Message-----
> From: Andy Shevchenko <[email protected]>
> Sent: Tuesday, November 11, 2025 7:20 AM
> To: Corey Minyard <[email protected]>; Koenig, Christian
> <[email protected]>; Dr. David Alan Gilbert <[email protected]>;
> Deucher, Alexander <[email protected]>; Thomas Zimmermann
> <[email protected]>; Dmitry Baryshkov
> <[email protected]>; Rob Clark
> <[email protected]>; Matthew Brost
> <[email protected]>; Ulf Hansson <[email protected]>; Andy
> Shevchenko <[email protected]>; Vitaly Lifshits
> <[email protected]>; Manivannan Sadhasivam <[email protected]>;
> Niklas Cassel <[email protected]>; Calvin Owens <[email protected]>; Vadim
> Fedorenko <[email protected]>; Sagi Maimon
> <[email protected]>; Martin K. Petersen
> <[email protected]>; Karan Tilak Kumar <[email protected]>;
> Hans Verkuil <[email protected]>; Casey Schaufler <casey@schaufler-
> ca.com>; Steven Rostedt <[email protected]>; Petr Mladek
> <[email protected]>; Viacheslav Dubeyko <[email protected]>; Max
> Kellermann <[email protected]>; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linaro-mm-
> [email protected]; [email protected]; linux-arm-
> [email protected]; [email protected]; intel-
> [email protected]; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; linux-trace-
> [email protected]
> Cc: Rasmus Villemoes <[email protected]>; Sergey Senozhatsky
> <[email protected]>; Jonathan Corbet <[email protected]>; Sumit
> Semwal <[email protected]>; Gustavo Padovan
> <[email protected]>; David Airlie <[email protected]>; Simona Vetter
> <[email protected]>; Maarten Lankhorst
> <[email protected]>; Maxime Ripard <[email protected]>;
> Dmitry Baryshkov <[email protected]>; Abhinav Kumar
> <[email protected]>; Jessica Zhang <[email protected]>; Sean
> Paul <[email protected]>; Marijn Suijten <[email protected]>;
> Konrad Dybcio <[email protected]>; Lucas De Marchi
> <[email protected]>; Thomas Hellström
> <[email protected]>; Rodrigo Vivi <[email protected]>;
> Vladimir Oltean <[email protected]>; Andrew Lunn <[email protected]>;
> David S. Miller <[email protected]>; Eric Dumazet
> <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni
> <[email protected]>; Tony Nguyen <[email protected]>;
> Przemek Kitszel <[email protected]>; Krzysztof Wilczyński
> <[email protected]>; Kishon Vijay Abraham I <[email protected]>;
> Bjorn Helgaas <[email protected]>; Rodolfo Giometti
> <[email protected]>; Richard Cochran <[email protected]>;
> Jonathan Lemon <[email protected]>; Stefan Haberland
> <[email protected]>; Jan Hoeppner <[email protected]>; Heiko
> Carstens <[email protected]>; Vasily Gorbik <[email protected]>;
> Alexander Gordeev <[email protected]>; Christian Borntraeger
> <[email protected]>; Sven Schnelle <[email protected]>; Satish
> Kharat <[email protected]>; Sesidhar Baddela <[email protected]>;
> James E.J. Bottomley <[email protected]>; Mauro
> Carvalho Chehab <[email protected]>; Greg Kroah-Hartman
> <[email protected]>; Xiubo Li <[email protected]>; Ilya Dryomov
> <[email protected]>; Masami Hiramatsu <[email protected]>;
> Mathieu Desnoyers <[email protected]>; Andrew Morton
> <[email protected]>
> Subject: [PATCH v2 05/21] drm/amdgpu: Switch to use %ptSp
>
> Use %ptSp instead of open coded variants to print content of struct
> timespec64 in human readable format.
>
> Signed-off-by: Andy Shevchenko <[email protected]>

Acked-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> index 8a026bc9ea44..4e2fe6674db8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> @@ -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",
> --
> 2.50.1

Reply via email to