Skip to content

Commit 0833646

Browse files
andy-shevpmladek
authored andcommitted
drm/vblank: 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> Link: https://patch.msgid.link/20251113150217.3030010-8-andriy.shevchenko@linux.intel.com Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 9d2a48c commit 0833646

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/gpu/drm/drm_vblank.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,8 @@ drm_crtc_vblank_helper_get_vblank_timestamp_internal(
794794
ts_vblank_time = ktime_to_timespec64(*vblank_time);
795795

796796
drm_dbg_vbl(dev,
797-
"crtc %u : v p(%d,%d)@ %lld.%06ld -> %lld.%06ld [e %d us, %d rep]\n",
798-
pipe, hpos, vpos,
799-
(u64)ts_etime.tv_sec, ts_etime.tv_nsec / 1000,
800-
(u64)ts_vblank_time.tv_sec, ts_vblank_time.tv_nsec / 1000,
797+
"crtc %u : v p(%d,%d)@ %ptSp -> %ptSp [e %d us, %d rep]\n",
798+
pipe, hpos, vpos, &ts_etime, &ts_vblank_time,
801799
duration_ns / 1000, i);
802800

803801
return true;

0 commit comments

Comments
 (0)