summaryrefslogtreecommitdiffstats
path: root/arch/mips/tools
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-04-30 20:36:24 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-04-30 16:30:44 +0200
commit44220fd84f3fa25208a441ae7a2cf0cf44699655 (patch)
treea1a339854ad860362d050942f5cc0b518f0a9717 /arch/mips/tools
parentf932449c11dabb4b0588e30f35c084b910483ca5 (diff)
downloadlinux-44220fd84f3fa25208a441ae7a2cf0cf44699655.tar.bz2
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 <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/tools')
-rw-r--r--arch/mips/tools/loongson3-llsc-check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/tools/loongson3-llsc-check.c b/arch/mips/tools/loongson3-llsc-check.c
index 0ebddd0ae46f..facd016dc51d 100644
--- a/arch/mips/tools/loongson3-llsc-check.c
+++ b/arch/mips/tools/loongson3-llsc-check.c
@@ -303,5 +303,7 @@ out_munmap:
out_close:
close(vmlinux_fd);
out_ret:
+ fprintf(stdout, "loongson3-llsc-check %s\n",
+ status ? "returns failure" : "returns success");
return status;
}