Example 30 Generating report for a module

$ cadvise report -pdb test.pdb -summary -module test1

=============================== SUMMARY REPORT =================================

Report generated using "HP Code Advisor C.XX.XX [Release Time]" on <machine> at <Report Time> Report command line: " cadvise report -pdb test.pdb -summary -module test1"

Unique warnings:29

Duplicate warnings: 0

Sev. Count

Diagnostic Message

 

--------------------------------------------------------------------------------

 

5

1

warning #20111-D: (SECURITY) Tainted data may be used in data length computation%s

5

4

warning

#20200-D: Potential null pointer dereference %s%s is detected

%s

5

12

warning

#20112-D: (SECURITY) Tainted data may be copied to the target

buffer%s

512 warning #20118-D: Tainted value may be used in pointer arithmetic expression%s

6.13Suppressing report header

All cadvise reports contain a header with the details of the report generation.

Format of Report header:

Report generated using <cadvise version> on <SYSTEM> at <TIMESTAMP> Report command line: <command line>

The -noheaderoption suppresses the report header in cadvise report.

Following example shows the report generation without a header.

Example 31 Suppressing Report Header

Report generated using "HP Code Advisor C.XX.XX [Feb 25 2009]" on shale at Mon Feb 25 01:49:11 2009 Report command line: "/opt/cadvise/bin/cadvise report -pdb /tmp/testpdb"

6.14 Modifying the default severity level of a diagnostic

The -chseverity <DN1:SL1,DN2:SL2,...,DNn:SLn> option enables you to modify the default severity level of one or more diagnostics in reports. DNx is the diagnostic number whose severity level is to be modified and SLx is the new severity level. The valid values for DNx and SLx are 1 to 9.

The following example shows the commands for modifying the default severity level of a diagnostic.

Example 32 Modifying the default severity level of diagnostic

The default severity level of diagnostic 20200 is 5. The following command line changes the severity to level 3.

$ cadvise -pdb testpdb -severity 1 -summary -chseverity 20200:3

The following command line changes the severity of 20200 to 3 and 20201 to 8.

$ cadvise -pdb testpdb -severity 1 -summary -chseverity 20200:3,20201:8

6.15 Generating PDB comparison report

The -basepdb <basepdbname> option enables you to compare the PDB <basepdbname> with the PDB specified with -pdboption. You can generate the following reports while comparing the PDBs:

“Generating summary diff report” (page 35)

“Generating detailed diff report” (page 35)

34 Generating reports