Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce default output of tracegen #3664

Merged
merged 1 commit into from
Mar 20, 2019
Merged

Conversation

youngar
Copy link
Contributor

@youngar youngar commented Mar 14, 2019

Make tracegen not output any information unless verbose is enabled.

Signed-off-by: Andrew Young youngar17@gmail.com

@@ -45,7 +45,9 @@ CFileWriter::writeOutputFiles(J9TDFOptions *options, J9TDFFile *tdf, J9TDFGroup
time_t targetFileMtime = FileUtils::getMtime(fileName);

if ((false == options->force) && (targetFileMtime > sourceFileMtime)) {
printf("C file is already up-to-date: %s\n", fileName);
if (true == options->verboseOutput) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the variable is a boolean can you remove the true == part?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. There are also some cases I saw where false == options->force could be replaced with !options->force if we wanted to.

Make tracegen not output any information unless verbose is enabled.

Signed-off-by: Andrew Young <youngar17@gmail.com>
@charliegracie
Copy link
Contributor

@genie-omr build all

@charliegracie charliegracie merged commit d4ac770 into eclipse-omr:master Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants