Merge pull request #966 from lnis-uofu/openfpgashell_hotfix

Now OpenFPGA Shell can show customized name in ending messages
This commit is contained in:
tangxifan 2022-12-30 16:08:23 -08:00 committed by GitHub
commit c0343c7bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -369,7 +369,7 @@ void Shell<T>::run_script_mode(const char* script_file_name,
if (CMD_EXEC_FATAL_ERROR == status) {
VTR_LOG("Fatal error occurred!\n");
/* If in the batch mode, we will exit with errors */
VTR_LOGV(batch_mode, "OpenFPGA Abort\n");
VTR_LOGV(batch_mode, "%s Abort\n", name_.c_str());
if (batch_mode) {
exit(CMD_EXEC_FATAL_ERROR);
}
@ -461,7 +461,8 @@ void Shell<T>::exit(const int& init_err) const {
VTR_LOG("\nFinish execution with %d errors\n",
num_err);
VTR_LOG("\nThe entire OpenFPGA flow took %g seconds\n",
VTR_LOG("\nThe entire %s flow took %g seconds\n",
name_.c_str(),
(double)(std::clock() - time_start_) / (double)CLOCKS_PER_SEC);
VTR_LOG("\nThank you for using %s!\n",