Commit 44220fd8 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Thomas Bogendoerfer

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: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent f932449c
...@@ -303,5 +303,7 @@ int main(int argc, char *argv[]) ...@@ -303,5 +303,7 @@ int main(int argc, char *argv[])
out_close: out_close:
close(vmlinux_fd); close(vmlinux_fd);
out_ret: out_ret:
fprintf(stdout, "loongson3-llsc-check %s\n",
status ? "returns failure" : "returns success");
return status; return status;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment