--- mutter-3.24.2.orig/src/backends/meta-input-settings.c
+++ mutter-3.24.2/src/backends/meta-input-settings.c
@@ -1107,7 +1107,7 @@
     }
   else
     {
-      path = g_strdup_printf ("/org/gnome/desktop/peripherals/stylus/%lx/", serial);
+      path = g_strdup_printf ("/org/gnome/desktop/peripherals/stylus/%" G_GUINT64_FORMAT "/", serial);
     }
 
   tool_settings =
