Fix trivial typo when printing message
Commit Message
When abilint prints its tips information and abisym prints its
version string, it does not terminate it with a newline the way
that other commands do.
* tools/abilint.cc (man): End the 'FILE_TYPE_UNKNOWN' tips with a newline.
* tools/abisym.cc (man): Add a newline after version string.
Signed-off-by: tangmeng <tangmeng@uniontech.com>
---
tools/abilint.cc | 3 ++-
tools/abisym.cc | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
Comments
Hello,
tangmeng <tangmeng@uniontech.com> a écrit:
> When abilint prints its tips information and abisym prints its
> version string, it does not terminate it with a newline the way
> that other commands do.
>
> * tools/abilint.cc (man): End the 'FILE_TYPE_UNKNOWN' tips with a newline.
> * tools/abisym.cc (man): Add a newline after version string.
I have just changed 'man' into 'main' in this ChangeLog entry.
> Signed-off-by: tangmeng <tangmeng@uniontech.com>
Applied to master. Thanks!
Cheers,
@@ -327,7 +327,8 @@ main(int argc, char* argv[])
{
case abigail::tools_utils::FILE_TYPE_UNKNOWN:
emit_prefix(argv[0], cerr)
- << "Unknown file type given in input: " << opts.file_path;
+ << "Unknown file type given in input: " << opts.file_path
+ << "\n";
return 1;
case abigail::tools_utils::FILE_TYPE_NATIVE_BI:
tu = read_translation_unit_from_file(opts.file_path, env.get());
@@ -121,7 +121,8 @@ main(int argc, char* argv[])
if (opts.display_version)
{
abigail::tools_utils::emit_prefix(argv[0], cout)
- << abigail::tools_utils::get_library_version_string();
+ << abigail::tools_utils::get_library_version_string()
+ << "\n";
return 0;
}