uint32_t *p;
GDK_DISPLAY_NOTE (seat->display, EVENTS,
- g_message ("tablet pad group handle buttons, pad group = %p, n_buttons = %ld",
+ g_message ("tablet pad group handle buttons, pad group = %p, n_buttons = %" G_GSIZE_FORMAT,
wp_tablet_pad_group, buttons->size));
wl_array_for_each (p, buttons)
#define return_if_fail_bytes(buffer, n_bytes) G_STMT_START{ \
if (BYTES_LEFT (buffer) < (n_bytes)) \
{ \
- g_warning ("Invalid XSETTINGS property (read off end: Expected %u bytes, only %ld left", \
+ g_warning ("Invalid XSETTINGS property (read off end: Expected %u bytes, only %"G_GSIZE_FORMAT" left", \
(n_bytes), BYTES_LEFT (buffer)); \
return FALSE; \
} \
!fetch_card32 (&buffer, &n_entries))
goto out;
- GDK_NOTE (SETTINGS, g_message ("reading %u settings (serial %u byte order %u)", n_entries, serial, buffer.byte_order));
+ GDK_NOTE (SETTINGS, g_message ("reading %lu settings (serial %lu byte order %u)",
+ (unsigned long)n_entries, (unsigned long)serial, buffer.byte_order));
for (i = 0; i < n_entries; i++)
{