From d1062dd5db4dc53decfece91a953625962886b83 Mon Sep 17 00:00:00 2001 From: Glenn Durfee Date: Wed, 27 Nov 2024 23:46:16 -0500 Subject: [PATCH 1/3] Log to stderr to match expected output shown in the tutorial docs --- docs_src/tutorials/hello_xls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/tutorials/hello_xls.md b/docs_src/tutorials/hello_xls.md index 4b976eed39..fa7b0fa40e 100644 --- a/docs_src/tutorials/hello_xls.md +++ b/docs_src/tutorials/hello_xls.md @@ -107,7 +107,7 @@ up! Open a terminal and execute the following in the XLS checkout root directory: ``` -$ ./bazel-bin/xls/dslx/interpreter_main hello_xls.x +$ ./bazel-bin/xls/dslx/interpreter_main --logtostderr hello_xls.x ``` You should see the following output: From 20c9d50acc59739ba259bc9fbd5d2d172340d0df Mon Sep 17 00:00:00 2001 From: Glenn Durfee Date: Thu, 28 Nov 2024 00:04:25 -0500 Subject: [PATCH 2/3] Adjust the output to match ABSL logging format --- docs_src/tutorials/hello_xls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/tutorials/hello_xls.md b/docs_src/tutorials/hello_xls.md index fa7b0fa40e..ba1a03c425 100644 --- a/docs_src/tutorials/hello_xls.md +++ b/docs_src/tutorials/hello_xls.md @@ -114,7 +114,7 @@ You should see the following output: ``` [ RUN UNITTEST ] hello_test -trace of hello_string @ hello.x:4:17-4:31: [72, 101, 108, 108, 111, 44, 32, 88, 76, 83, 33] +... trace of hello_string: [72, 101, 108, 108, 111, 44, 32, 88, 76, 83, 33] [ OK ] [===============] 1 test(s) ran; 0 failed; 0 skipped. ``` From 3334f3bb999e89f7b16264705e81cf9f66993f0a Mon Sep 17 00:00:00 2001 From: Glenn Durfee Date: Thu, 28 Nov 2024 12:41:37 -0500 Subject: [PATCH 3/3] Use --alsologtostderr rather than --logtostderr. --- docs_src/tutorials/hello_xls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/tutorials/hello_xls.md b/docs_src/tutorials/hello_xls.md index ba1a03c425..8cc694fd20 100644 --- a/docs_src/tutorials/hello_xls.md +++ b/docs_src/tutorials/hello_xls.md @@ -107,7 +107,7 @@ up! Open a terminal and execute the following in the XLS checkout root directory: ``` -$ ./bazel-bin/xls/dslx/interpreter_main --logtostderr hello_xls.x +$ ./bazel-bin/xls/dslx/interpreter_main --alsologtostderr hello_xls.x ``` You should see the following output: