diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-30 17:29:17 -0700 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2019-09-03 13:54:21 +0200 |
commit | 1a4153b24cce3f25db6bbc3dc5dc4efcfa146ab7 (patch) | |
tree | 64dc831dac09e47767e4aae77ac6fe392afa5ca4 /src/panfrost/midgard/midgard_print.c | |
parent | 032e21b33e9765d645e624c8fb75d66c85d16e83 (diff) |
pan/midgard: Fix cppcheck issues
Miscellaneous minor issues flagged by cppcheck.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_print.c')
-rw-r--r-- | src/panfrost/midgard/midgard_print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c index 50eb626f5e8..c79603c64d2 100644 --- a/src/panfrost/midgard/midgard_print.c +++ b/src/panfrost/midgard/midgard_print.c @@ -174,7 +174,7 @@ mir_print_instruction(midgard_instruction *ins) void mir_print_block(midgard_block *block) { - printf("block%d: {\n", block->source_id); + printf("block%u: {\n", block->source_id); if (block->is_scheduled) { mir_foreach_bundle_in_block(block, bundle) { @@ -194,14 +194,14 @@ mir_print_block(midgard_block *block) if (block->nr_successors) { printf(" -> "); for (unsigned i = 0; i < block->nr_successors; ++i) { - printf("block%d%s", block->successors[i]->source_id, + printf("block%u%s", block->successors[i]->source_id, (i + 1) != block->nr_successors ? ", " : ""); } } printf(" from { "); mir_foreach_predecessor(block, pred) - printf("block%d ", pred->source_id); + printf("block%u ", pred->source_id); printf("}"); printf("\n\n"); |