cFE icon indicating copy to clipboard operation
cFE copied to clipboard

Send CMake message to stdout instead of stderr

Open Codym48 opened this issue 2 years ago • 0 comments

Checklist (Please check before submitting)

Describe the contribution While executing the drac0-rc5 training exercises, I noticed on the first make prep call that the following message is printed to stderr

NOTE: Selected /home/cmartin/code/cFS/sample_defs/cpu1_cfe_es_startup.scr as source for cfe_es_startup.scr on cpu1

This seems like an informational message that would be more appropriate for stdout than stderr, so I added the STATUS keyword to the cmake message call.

Testing performed Before change

make prep > stdout.log # observe NOTE printed to screen despite passing stdout to file

After change

rm -rf build
make prep > stdout.log # observe nothing printed to screen 🎉

Expected behavior changes

  • API Change: None
  • Behavior Change: One message that used to go to stderr now goes to stdout

System(s) tested on

  • Hardware: PC
  • OS: Ubuntu 22.04
  • Versions: draco-rc5

Additional context This is a bit of a trial balloon to feel out the cFS contribution process. I'm reading the CLAs now and will update or edit this once I have submitted. I won't be offended if you close this Pull Request with no action. Thank you for your hard work on this product and its outstanding documentation!

Contributor Info - All information REQUIRED for consideration of pull request Cody Martin

Codym48 avatar Mar 08 '24 21:03 Codym48