| Summary: | Diags.ALL includes deprecated USER7/8, and therefore generates deprecated usage warnings | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Chris Ring <cring> |
| Component: | Core | Assignee: | Chris McCormick <c-mccormick> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | amitm, d-russo |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:3.20 | ||
I've fixed this in xdc-v37. I changed the deprecation-warning logic to not warn if (USER7 == INFO). Likewise, it will not warn if (USER8 == ANALYSIS). That way, if both are changed at the same time with the same value, as in:
Diags.setMaskMeta('xdc.runtime.Main', Diags.ALL, Diags.RUNTIME_ON);
then the user will not get a warning.
Verified in xdcprod-m40. Built application with xdcprod-m34 and confirmed the warning being shown in the console. Rebuilt with xdcprod-m40. The warning is not seen any more. |
If my .cfg script does this (nothing to do with the deprecated USER7 or USER8): Diags.setMaskMeta('xdc.runtime.Main', Diags.ALL, Diags.RUNTIME_ON); I get this noisy output during config: ====================== warning: xdc.runtime.Diags: "/db/rtree/install/trees/products/xdcprod/xdcprod-m38/product/Linux/xdctools_3_20_00_38_eng/packages/xdc/runtime/Diags.xs", line 213: xdc.runtime.Main diags_USER7: xdc.runtime.Main.common$.diags_USER7 has been modified from its default. Diags.USER7 has been deprecated and is now equivalent to Diags.INFO. diags_INFO has also been changed from its default, so the value xdc.runtime.Diags.RUNTIME_ON from INFO will be used. warning: xdc.runtime.Diags: "/db/rtree/install/trees/products/xdcprod/xdcprod-m38/product/Linux/xdctools_3_20_00_38_eng/packages/xdc/runtime/Diags.xs", line 251: xdc.runtime.Main diags_USER8: xdc.runtime.Main.common$.diags_USER8 has been modified from its default. Diags.USER8 has been deprecated and is now equivalent to Diags.ANALYSIS. diags_ANALYSIS has also been changed from its default, so the value xdc.runtime.Diags.RUNTIME_ON from ANALYSIS will be used. ====================== Diags.ALL is supported and not deprecated, and using it shouldn't generate these deprecation warnings.