mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
present: fix compile warning with debug traces
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
committed by
Adam Jackson
parent
7a44e8d400
commit
a425eee6dc
@@ -133,12 +133,12 @@ present_check_flip(RRCrtcPtr crtc,
|
||||
/* Ask the driver for permission */
|
||||
if (screen_priv->info->version >= 1 && screen_priv->info->check_flip2) {
|
||||
if (!(*screen_priv->info->check_flip2) (crtc, window, pixmap, sync_flip, reason)) {
|
||||
DebugPresent(("\td %08lx -> %08lx\n", window->drawable.id, pixmap ? pixmap->drawable.id : 0));
|
||||
DebugPresent(("\td %08" PRIx32 " -> %08" PRIx32 "\n", window->drawable.id, pixmap ? pixmap->drawable.id : 0));
|
||||
return FALSE;
|
||||
}
|
||||
} else if (screen_priv->info->check_flip) {
|
||||
if (!(*screen_priv->info->check_flip) (crtc, window, pixmap, sync_flip)) {
|
||||
DebugPresent(("\td %08lx -> %08lx\n", window->drawable.id, pixmap ? pixmap->drawable.id : 0));
|
||||
DebugPresent(("\td %08" PRIx32 " -> %08" PRIx32 "\n", window->drawable.id, pixmap ? pixmap->drawable.id : 0));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@@ -351,7 +351,7 @@ present_unflip(ScreenPtr screen)
|
||||
present_restore_screen_pixmap(screen);
|
||||
|
||||
screen_priv->unflip_event_id = ++present_event_id;
|
||||
DebugPresent(("u %lld\n", screen_priv->unflip_event_id));
|
||||
DebugPresent(("u %" PRIu64 "\n", screen_priv->unflip_event_id));
|
||||
(*screen_priv->info->unflip) (screen, screen_priv->unflip_event_id);
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ present_flip_notify(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
|
||||
ScreenPtr screen = vblank->screen;
|
||||
present_screen_priv_ptr screen_priv = present_screen_priv(screen);
|
||||
|
||||
DebugPresent(("\tn %lld %p %8lld: %08lx -> %08lx\n",
|
||||
DebugPresent(("\tn %" PRIu64 " %p %" PRIu64 ": %08" PRIx32 " -> %08" PRIx32 "\n",
|
||||
vblank->event_id, vblank, vblank->target_msc,
|
||||
vblank->pixmap ? vblank->pixmap->drawable.id : 0,
|
||||
vblank->window ? vblank->window->drawable.id : 0));
|
||||
@@ -402,7 +402,7 @@ present_event_notify(uint64_t event_id, uint64_t ust, uint64_t msc)
|
||||
|
||||
if (!event_id)
|
||||
return;
|
||||
DebugPresent(("\te %lld ust %lld msc %lld\n", event_id, ust, msc));
|
||||
DebugPresent(("\te %" PRIu64 " ust %" PRIu64 " msc %" PRIu64 "\n", event_id, ust, msc));
|
||||
xorg_list_for_each_entry(vblank, &present_exec_queue, event_queue) {
|
||||
int64_t match = event_id - vblank->event_id;
|
||||
if (match == 0) {
|
||||
@@ -425,7 +425,7 @@ present_event_notify(uint64_t event_id, uint64_t ust, uint64_t msc)
|
||||
present_screen_priv_ptr screen_priv = present_screen_priv(screen);
|
||||
|
||||
if (event_id == screen_priv->unflip_event_id) {
|
||||
DebugPresent(("\tun %lld\n", event_id));
|
||||
DebugPresent(("\tun %" PRIu64 "\n", event_id));
|
||||
screen_priv->unflip_event_id = 0;
|
||||
present_flip_idle(screen);
|
||||
present_flip_try_ready(screen);
|
||||
@@ -547,7 +547,7 @@ present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
|
||||
|
||||
if (vblank->flip && vblank->pixmap && vblank->window) {
|
||||
if (screen_priv->flip_pending || screen_priv->unflip_event_id) {
|
||||
DebugPresent(("\tr %lld %p (pending %p unflip %lld)\n",
|
||||
DebugPresent(("\tr %" PRIu64 " %p (pending %p unflip %" PRIu64 ")\n",
|
||||
vblank->event_id, vblank,
|
||||
screen_priv->flip_pending, screen_priv->unflip_event_id));
|
||||
xorg_list_del(&vblank->event_queue);
|
||||
@@ -565,7 +565,7 @@ present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
|
||||
|
||||
if (vblank->flip) {
|
||||
|
||||
DebugPresent(("\tf %lld %p %8lld: %08lx -> %08lx\n",
|
||||
DebugPresent(("\tf %" PRIu64 " %p %" PRIu64 ": %08" PRIx32 " -> %08" PRIx32 "\n",
|
||||
vblank->event_id, vblank, crtc_msc,
|
||||
vblank->pixmap->drawable.id, vblank->window->drawable.id));
|
||||
|
||||
@@ -609,7 +609,8 @@ present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
|
||||
screen_priv->flip_pending = NULL;
|
||||
vblank->flip = FALSE;
|
||||
}
|
||||
DebugPresent(("\tc %p %8lld: %08lx -> %08lx\n", vblank, crtc_msc, vblank->pixmap->drawable.id, vblank->window->drawable.id));
|
||||
DebugPresent(("\tc %p %" PRIu64 ": %08" PRIx32 " -> %08" PRIx32 "\n",
|
||||
vblank, crtc_msc, vblank->pixmap->drawable.id, vblank->window->drawable.id));
|
||||
if (screen_priv->flip_pending) {
|
||||
|
||||
/* Check pending flip
|
||||
@@ -713,7 +714,7 @@ present_scmd_pixmap(WindowPtr window,
|
||||
if (vblank->crtc != target_crtc || vblank->target_msc != target_msc)
|
||||
continue;
|
||||
|
||||
DebugPresent(("\tx %lld %p %8lld: %08lx -> %08lx (crtc %p)\n",
|
||||
DebugPresent(("\tx %" PRIu64 " %p %" PRIu64 ": %08" PRIx32 " -> %08" PRIx32 " (crtc %p)\n",
|
||||
vblank->event_id, vblank, vblank->target_msc,
|
||||
vblank->pixmap->drawable.id, vblank->window->drawable.id,
|
||||
vblank->crtc));
|
||||
|
||||
Reference in New Issue
Block a user