Module: Mesa Branch: master Commit: c2974a1d45c7e922bb36571cf6873f368dc639a6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2974a1d45c7e922bb36571cf6873f368dc639a6
Author: Marcin Ślusarz <[email protected]> Date: Mon Nov 30 13:21:35 2020 +0100 intel/tools/aubinator_error_decode: allow 0 arguments Signed-off-by: Marcin Ślusarz <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7833> --- src/intel/tools/aubinator_error_decode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index e1d86be8a59..19cca97b1f9 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -791,7 +791,7 @@ main(int argc, char *argv[]) } } - if (help || argc == 1) { + if (help) { print_help(argv[0], stderr); exit(EXIT_SUCCESS); } @@ -815,8 +815,7 @@ main(int argc, char *argv[]) "\tsudo mount -t debugfs debugfs /sys/kernel/debug\n"); } } else { - read_data_file(stdin); - exit(EXIT_SUCCESS); + file = stdin; } } else { path = argv[optind]; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
