Skip to content

Commit

Permalink
SVDConv: Print program header when log file "-b log.txt" is written
Browse files Browse the repository at this point in the history
instead of being completely silent

Co-authored-by: Thorsten de Buhr <[email protected]>
  • Loading branch information
grasci-arm and thorstendb-ARM authored Nov 7, 2022
1 parent f4092dd commit 3f2daf9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/svdconv/SVDConv/src/SvdOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ bool SvdOptions::SetLogFile(const string& logFile)
}
}

ErrLog::Get()->SetLogFileName(RteUtils::RemoveQuotes(logFile));
m_logPath = RteUtils::RemoveQuotes(logFile);
ErrLog::Get()->SetLogFileName(m_logPath);

return true;
}
Expand Down Expand Up @@ -286,7 +287,7 @@ bool SvdOptions::SetFileUnderTest(const string& filename)
LogMsg("M202");
return false;
}

string svdToCheck = RteUtils::BackSlashesToSlashes(RteUtils::RemoveQuotes(filename));
m_svdToCheck = RteFsUtils::AbsolutePath(svdToCheck).generic_string();

Expand Down Expand Up @@ -334,7 +335,7 @@ bool SvdOptions::SetOutputDirectory(const string& filename)
return true;
}

const std::string& SvdOptions::GetOutputDirectory()
const std::string& SvdOptions::GetOutputDirectory()
{
return m_outputDir;
}
Expand Down

0 comments on commit 3f2daf9

Please sign in to comment.