Skip to content

Commit

Permalink
MIPS: tools: Show result for loongson3-llsc-check
Browse files Browse the repository at this point in the history
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 <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Tiezhu Yang authored and Thomas Bogendoerfer committed Apr 30, 2020
1 parent f932449 commit 44220fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/tools/loongson3-llsc-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,5 +303,7 @@ int main(int argc, char *argv[])
out_close:
close(vmlinux_fd);
out_ret:
fprintf(stdout, "loongson3-llsc-check %s\n",
status ? "returns failure" : "returns success");
return status;
}

0 comments on commit 44220fd

Please sign in to comment.