Skip to content

Conversation

@joker-eph
Copy link
Collaborator

This makes the output more readable by clearly showing the current debug type as a keyword.

@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-llvm-support

Author: Mehdi Amini (joker-eph)

Changes

This makes the output more readable by clearly showing the current debug type as a keyword.


Full diff: https://github.com/llvm/llvm-project/pull/150671.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Support/DebugLog.h (+2-2)
diff --git a/llvm/include/llvm/Support/DebugLog.h b/llvm/include/llvm/Support/DebugLog.h
index 9556bf2d6242d..964f033fb16cf 100644
--- a/llvm/include/llvm/Support/DebugLog.h
+++ b/llvm/include/llvm/Support/DebugLog.h
@@ -38,8 +38,8 @@ class LogWithNewline {
                  raw_ostream &os)
       : os(os) {
     if (debug_type)
-      os << debug_type << " ";
-    os << "[" << file << ":" << line << "] ";
+      os << "[" << debug_type << "]";
+    os << "@" << file << ":" << line << "| ";
   }
   ~LogWithNewline() { os << '\n'; }
   template <typename T> raw_ostream &operator<<(const T &t) && {

This makes the output more readable by clearly showing the current debug
type as a keyword.
@joker-eph joker-eph merged commit 89de262 into llvm:main Jul 25, 2025
5 of 8 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/31243

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/10/48' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/Support/./SupportTests-LLVM-Unit-1382958-10-48.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=48 GTEST_SHARD_INDEX=10 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/Support/./SupportTests
--

Script:
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


@joker-eph joker-eph deleted the ldbg branch July 25, 2025 19:24
joker-eph added a commit that referenced this pull request Jul 25, 2025
joker-eph added a commit that referenced this pull request Jul 25, 2025
joker-eph added a commit that referenced this pull request Jul 25, 2025
This makes the output more readable by clearly showing the current debug
type as a keyword.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/20970

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/10/96' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/Support/./SupportTests-LLVM-Unit-3182833-10-96.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=96 GTEST_SHARD_INDEX=10 /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/Support/./SupportTests
--

Script:
--
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 25, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/21847

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/106/192' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/unittests/Support/./SupportTests-LLVM-Unit-3959016-106-192.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=192 GTEST_SHARD_INDEX=106 /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/unittests/Support/./SupportTests
--

Script:
--
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/21990

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/106/192' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/unittests/Support/./SupportTests-LLVM-Unit-4145919-106-192.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=192 GTEST_SHARD_INDEX=106 /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/unittests/Support/./SupportTests
--

Script:
--
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 26, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/23289

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/10/96' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/b/1/llvm-clang-x86_64-expensive-checks-debian/build/unittests/Support/./SupportTests-LLVM-Unit-1771944-10-96.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=96 GTEST_SHARD_INDEX=10 /b/1/llvm-clang-x86_64-expensive-checks-debian/build/unittests/Support/./SupportTests
--

Script:
--
/b/1/llvm-clang-x86_64-expensive-checks-debian/build/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 26, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/31785

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/9/96' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/b/1/clang-x86_64-debian-fast/llvm.obj/unittests/Support/./SupportTests-LLVM-Unit-1772293-9-96.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=96 GTEST_SHARD_INDEX=9 /b/1/clang-x86_64-debian-fast/llvm.obj/unittests/Support/./SupportTests
--

Script:
--
/b/1/clang-x86_64-debian-fast/llvm.obj/unittests/Support/./SupportTests --gtest_filter=DebugLogTest.Basic
--
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/Support/DebugLogTest.cpp:30: Failure
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true


/b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/Support/DebugLogTest.cpp:30
Value of: StringRef(os.str()).starts_with('[')
  Actual: false
Expected: true



********************


mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
This makes the output more readable by clearly showing the current debug
type as a keyword.
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
This makes the output more readable by clearly showing the current debug
type as a keyword.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants