MIPS: tools: Show result for loongson3-llsc-check
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 30 Apr 2020 12:36:24 +0000 (20:36 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 30 Apr 2020 14:30:44 +0000 (16:30 +0200)
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>
arch/mips/tools/loongson3-llsc-check.c

index 0ebddd0ae46fb37bf3739de6282f38c550449f43..facd016dc51df435e008bd1ebb6e02d0bd38ce5f 100644 (file)
@@ -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;
 }