mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Petr Mladek
parent
fbd3aad6e0
commit
9d2a48c3a7
@@ -82,8 +82,7 @@ void msm_disp_state_print(struct msm_disp_state *state, struct drm_printer *p)
|
||||
drm_printf(p, "kernel: " UTS_RELEASE "\n");
|
||||
drm_printf(p, "module: " KBUILD_MODNAME "\n");
|
||||
drm_printf(p, "dpu devcoredump\n");
|
||||
drm_printf(p, "time: %lld.%09ld\n",
|
||||
state->time.tv_sec, state->time.tv_nsec);
|
||||
drm_printf(p, "time: %ptSp\n", &state->time);
|
||||
|
||||
list_for_each_entry_safe(block, tmp, &state->blocks, node) {
|
||||
drm_printf(p, "====================%s================\n", block->name);
|
||||
|
||||
@@ -197,8 +197,7 @@ static ssize_t msm_gpu_devcoredump_read(char *buffer, loff_t offset,
|
||||
drm_printf(&p, "---\n");
|
||||
drm_printf(&p, "kernel: " UTS_RELEASE "\n");
|
||||
drm_printf(&p, "module: " KBUILD_MODNAME "\n");
|
||||
drm_printf(&p, "time: %lld.%09ld\n",
|
||||
state->time.tv_sec, state->time.tv_nsec);
|
||||
drm_printf(&p, "time: %ptSp\n", &state->time);
|
||||
if (state->comm)
|
||||
drm_printf(&p, "comm: %s\n", state->comm);
|
||||
if (state->cmd)
|
||||
|
||||
Reference in New Issue
Block a user