Seagate / propeller

Customized lvmlockd
GNU General Public License v2.0
4 stars 7 forks source link

Feature/FOSS-466 2 refactor debug compiles and logging #187

Closed scott-howe-1 closed 1 year ago

scott-howe-1 commented 1 year ago

Discovered I was handling debug messaging incorrectly. The pre-existing TEST compile flag allows for use of the ilmlog...() functions to be used in all cases, so long as the TEST compile flag is used when appropriate. This PR rips out a bunch of unnecessary code related to re-routing the debug messages to printf() calls. It also refactors the compile flags used within the NVMe-related code.
These will probably be ripped out later, but they are useful debug tolls at the moment. This forced expanded use of the Makefile.nvme file, which will remain in the repo as well, for now. Kept similar #define compile flags with separate copies in each file for now, for more usage flexibility.