keycodes: use correct printf format
authorRan Benita <ran234@gmail.com>
Thu, 23 Oct 2014 18:03:13 +0000 (21:03 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 23 Oct 2014 18:03:13 +0000 (21:03 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/keycodes.c

index 9a828f0..7f5955e 100644 (file)
@@ -467,7 +467,7 @@ HandleLedNameDef(KeyNamesInfo *info, LedNameDef *def,
 
     if (!ExprResolveString(info->ctx, def->name, &name)) {
         char buf[20];
-        snprintf(buf, sizeof(buf), "%d", def->ndx);
+        snprintf(buf, sizeof(buf), "%u", def->ndx);
         info->errorCount++;
         return ReportBadType(info->ctx, "indicator", "name", buf, "string");
     }