Fix size_t vs. %d warning
authorDaniel Stone <daniel@fooishbar.org>
Wed, 26 Sep 2012 00:28:52 +0000 (10:28 +1000)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 26 Sep 2012 00:28:52 +0000 (10:28 +1000)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/symbols.c

index 0aeb6b5..4e8b7bd 100644 (file)
@@ -1423,10 +1423,10 @@ FindTypeForGroup(struct xkb_keymap *keymap, KeyInfo *keyi,
 
     if (type_name == XKB_ATOM_NONE) {
         log_warn(keymap->ctx,
-                 "Couldn't find an automatic type for key '%s' group %d with %d levels; "
+                 "Couldn't find an automatic type for key '%s' group %d with %lu levels; "
                  "Using the default type\n",
                  LongKeyNameText(keyi->name), group + 1,
-                 darray_size(groupi->levels));
+                 (unsigned long) darray_size(groupi->levels));
         goto use_default;
     }