-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Adjust LDBG output: surround DebugType between [ and ]
#150671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-mlir @llvm/pr-subscribers-llvm-support Author: Mehdi Amini (joker-eph) ChangesThis 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:
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.
|
LLVM Buildbot has detected a new failure on builder 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 |
|
LLVM Buildbot has detected a new failure on builder 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 |
… and `]`" (#150685) Reverts llvm/llvm-project#150671 ; buildbot failure.
|
LLVM Buildbot has detected a new failure on builder 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 |
|
LLVM Buildbot has detected a new failure on builder 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 |
|
LLVM Buildbot has detected a new failure on builder 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 |
|
LLVM Buildbot has detected a new failure on builder 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 |
This makes the output more readable by clearly showing the current debug type as a keyword.
…lvm#150685) Reverts llvm#150671 ; buildbot failure.
This makes the output more readable by clearly showing the current debug type as a keyword.
This makes the output more readable by clearly showing the current debug type as a keyword.