Merge pull request #86 from simontime/patch-1

PRId8 -> PRIu8 for SDK Version printing
This commit is contained in:
SciresM 2020-02-21 13:54:19 -08:00 committed by GitHub
commit 9689467087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
nca.c
View file

@ -835,7 +835,7 @@ void nca_print(nca_ctx_t *ctx) {
}
printf("Content Size: 0x%012"PRIx64"\n", ctx->header.nca_size);
printf("Title ID: %016"PRIx64"\n", ctx->header.title_id);
printf("SDK Version: %"PRId8".%"PRId8".%"PRId8".%"PRId8"\n", ctx->header.sdk_major, ctx->header.sdk_minor, ctx->header.sdk_micro, ctx->header.sdk_revision);
printf("SDK Version: %"PRIu8".%"PRIu8".%"PRIu8".%"PRIu8"\n", ctx->header.sdk_major, ctx->header.sdk_minor, ctx->header.sdk_micro, ctx->header.sdk_revision);
printf("Distribution type: %s\n", nca_get_distribution_type(ctx));
printf("Content Type: %s\n", nca_get_content_type(ctx));
printf("Master Key Revision: %"PRIx8" (%s)\n", ctx->crypto_type, get_key_revision_summary(ctx->crypto_type));