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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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