[gtk/wip/otte/for-master: 2/2] wayland: Add format hex value to debug print




commit d17552670c467b234bd444e103e522c0c66e2971
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 07:04:20 2021 +0200

    wayland: Add format hex value to debug print
    
    It's how it's listed in the spec, this makes it easier to search.

 gdk/wayland/gdkdisplay-wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 4a5f633369..4f70a3c833 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -296,7 +296,7 @@ wl_shm_format (void          *data,
 {
   GDK_NOTE (MISC,
             char buf[10];
-            g_message ("supported pixel format %s", get_format_name (format, buf));
+            g_message ("supported pixel format %s (0x%X)", get_format_name (format, buf), (guint) format);
             );
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]