Commit c0e5149
committed
[offload] defer "---> olInit" trace message
Tracing requires liboffload to be initialized, so calling
isTracingEnabled() before olInit always returns false.
This caused the first trace log to look like:
-> OL_SUCCESS
instead of:
---> olInit() -> OL_SUCCESS
This patch moves the pre-call trace print for olInit so it is emitted
only after initialization.
It would be possible to add extra logic to detect whether liboffload
is already initialized and only postpone the first pre-call print, but
this would add unnecessary complexity, especially since this is
tablegen code. The difference would matter only in the unlikely
case of a crash during a second olInit call.1 parent 09fd430 commit c0e5149
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
0 commit comments