Get rid of misleading indentation warnings (GCC6 -Wmisleading-indentation) (#859)

This commit is contained in:
Jakuje 2016-08-27 23:19:52 +02:00 committed by Frank Morgner
parent f64c71da28
commit 952fb7cb93
2 changed files with 12 additions and 10 deletions

View File

@ -169,16 +169,16 @@ void _sc_debug_hex(sc_context_t *ctx, int type, const char *file, int line,
if (buf == NULL)
return;
sc_hex_dump(ctx, type, data, len, buf, blen);
sc_hex_dump(ctx, type, data, len, buf, blen);
if (label)
sc_do_log(ctx, type, file, line, func,
"\n%s (%u byte%s):\n%s",
label, (unsigned int) len, len==1?"":"s", buf);
else
sc_do_log(ctx, type, file, line, func,
"%u byte%s:\n%s",
(unsigned int) len, len==1?"":"s", buf);
if (label)
sc_do_log(ctx, type, file, line, func,
"\n%s (%u byte%s):\n%s",
label, (unsigned int) len, len==1?"":"s", buf);
else
sc_do_log(ctx, type, file, line, func,
"%u byte%s:\n%s",
(unsigned int) len, len==1?"":"s", buf);
free(buf);
}

View File

@ -558,7 +558,9 @@ int main(
exit(1);
}
printf("\nCard detected (driver: %s)\nATR:", card->driver->name);
for(i=0;i<card->atr.len;++i) printf("%c%02X", i?':':' ', card->atr.value[i]); printf("\n");
for (i = 0; i < card->atr.len; ++i)
printf("%c%02X", i?':':' ', card->atr.value[i]);
printf("\n");
if((r = sc_lock(card))<0){
fprintf(stderr,"Lock failed: %s\n", sc_strerror(r));