Get rid of misleading indentation warnings (GCC6 -Wmisleading-indentation) (#859)
This commit is contained in:
parent
f64c71da28
commit
952fb7cb93
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue