Summary: | Split "assert (a && b)" statements into "assert(a); assert(b)", for more precise diagnostics | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Adam J. Richter <adam_richter2004> | ||||
Component: | Driver/intel | Assignee: | Chris Wilson <chris> | ||||
Status: | RESOLVED MOVED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||
Severity: | enhancement | ||||||
Priority: | low | CC: | adam_richter2004 | ||||
Version: | unspecified | Keywords: | patch | ||||
Hardware: | Other | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Adam J. Richter
2019-05-14 22:09:32 UTC
Whereas I agree with the sentiment, my spot checking shows that logical tests have been split which do not provide any more information. They do not provide any of the information that is provided in the trace, and are basically a means to narrow down the trace. These asserts should never be enabled by default, or at any time other than during debugging as they actively destabilize the system by breaking on the first sign of error that would otherwise be handed normally. They *cause* data loss. Since you are debugging, going one step further to enable the trace or attach gdb and inspect the values is not onerous. So I have to say the patch is mere churn that doesn't improve debugging one iota. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/issues/163. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.