Skip to content

Commit 9d2a48c

Browse files
andy-shevpmladek
authored andcommitted
drm/msm: 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 <andriy.shevchenko@linux.intel.com> Acked-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://patch.msgid.link/20251113150217.3030010-7-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent fbd3aad commit 9d2a48c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ void msm_disp_state_print(struct msm_disp_state *state, struct drm_printer *p)
8282
drm_printf(p, "kernel: " UTS_RELEASE "\n");
8383
drm_printf(p, "module: " KBUILD_MODNAME "\n");
8484
drm_printf(p, "dpu devcoredump\n");
85-
drm_printf(p, "time: %lld.%09ld\n",
86-
state->time.tv_sec, state->time.tv_nsec);
85+
drm_printf(p, "time: %ptSp\n", &state->time);
8786

8887
list_for_each_entry_safe(block, tmp, &state->blocks, node) {
8988
drm_printf(p, "====================%s================\n", block->name);

drivers/gpu/drm/msm/msm_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ static ssize_t msm_gpu_devcoredump_read(char *buffer, loff_t offset,
197197
drm_printf(&p, "---\n");
198198
drm_printf(&p, "kernel: " UTS_RELEASE "\n");
199199
drm_printf(&p, "module: " KBUILD_MODNAME "\n");
200-
drm_printf(&p, "time: %lld.%09ld\n",
201-
state->time.tv_sec, state->time.tv_nsec);
200+
drm_printf(&p, "time: %ptSp\n", &state->time);
202201
if (state->comm)
203202
drm_printf(&p, "comm: %s\n", state->comm);
204203
if (state->cmd)

0 commit comments

Comments
 (0)