use z modifier for printing size_t

This commit is contained in:
Frank Morgner
2016-03-01 14:51:25 +01:00
parent dcf657f343
commit 76a4a601d8
2 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ static int list_readers(sc_context_t *ctx)
} else {
strncpy(card_atr, "[no card present]", sizeof card_atr);
}
printf("%-4d %-7s %s\n", i, reader->driver->short_name, reader->name);
printf("%-4zu %-7s %s\n", i, reader->driver->short_name, reader->name);
printf(" ATR: %s\n", card_atr);
}