Skip to content

Commit

Permalink
Merge pull request #3664 from youngar/master
Browse files Browse the repository at this point in the history
Reduce default output of tracegen
  • Loading branch information
charliegracie authored Mar 20, 2019
2 parents 62adf25 + 64fcd7a commit d4ac770
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tools/tracegen/CFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (options->verboseOutput) {
printf("C file is already up-to-date: %s\n", fileName);
}
Port::omrmem_free((void **)&fileName);
return RC_OK;
}
Expand Down
4 changes: 3 additions & 1 deletion tools/tracegen/DATFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ DATFileWriter::writeOutputFiles(J9TDFOptions *options, J9TDFFile *tdf)
time_t targetFileMtime = FileUtils::getMtime(fileName);

if ((false == options->force) && (targetFileMtime > sourceFileMtime)) {
printf("pdat file is already up-to-date: %s\n", fileName);
if (options->verboseOutput) {
printf("pdat file is already up-to-date: %s\n", fileName);
}
Port::omrmem_free((void **)&fileName);
return RC_OK;
}
Expand Down
6 changes: 4 additions & 2 deletions tools/tracegen/TraceHeaderWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,14 @@ TraceHeaderWriter::writeOutputFiles(J9TDFOptions *options, J9TDFFile *tdf)
time_t targetFileMtime = FileUtils::getMtime(fileName);

if (false == options->force && targetFileMtime > sourceFileMtime) {
printf("Header file is already up-to-date: %s\n", fileName);
if (options->verboseOutput) {
printf("Header file is already up-to-date: %s\n", fileName);
}
Port::omrmem_free((void **)&fileName);
return RC_OK;
}

if (true == options->verboseOutput) {
if (options->verboseOutput) {
printf("Creating header file: %s\n", fileName);
}

Expand Down

0 comments on commit d4ac770

Please sign in to comment.