intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
693 stars 183 forks source link

fix issues found with cppcheck static analysis #208

Closed ColinIanKing closed 2 years ago

ColinIanKing commented 2 years ago

Fix some issues found with cppcheck static analysis. Two commits.

Description

  1. There are some printf statements using %d for an unsigned integer, use %u for these.
  2. Remove redundant less than zero check on a sizet (unsigned) variable.

Affected parts

Motivation and Contex

Clean up some minor static analysis warnings. Not major bugs, just janitorial clean-ups

How Has This Been Tested?

Just sanity checked with rebuilds with ICC and GCC and re-ran cppcheck.

Types of changes

Checklist: