Skip to content

Commit 44220fd

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: tools: Show result for loongson3-llsc-check
It is better to show the result before loongson3-llsc-check exit, otherwise we can see nothing if the return status is EXIT_SUCCESS, it seems confusing. E.g. without this patch: [loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux [loongson@localhost tools]$ With this patch: [loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux loongson3-llsc-check returns success [loongson@localhost tools]$ Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent f932449 commit 44220fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/mips/tools/loongson3-llsc-check.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,7 @@ int main(int argc, char *argv[])
303303
out_close:
304304
close(vmlinux_fd);
305305
out_ret:
306+
fprintf(stdout, "loongson3-llsc-check %s\n",
307+
status ? "returns failure" : "returns success");
306308
return status;
307309
}

0 commit comments

Comments
 (0)