keycodes: use correct printf format

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-10-23 21:03:13 +03:00
parent c03834a1c6
commit 9162017947
1 changed files with 1 additions and 1 deletions

View 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");
}