Fix trivial typo when printing message

Message ID 20211103065725.5779-1-tangmeng@uniontech.com
State New
Headers
Series Fix trivial typo when printing message |

Commit Message

tangmeng Nov. 3, 2021, 6:57 a.m. UTC
  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

Dodji Seketeli Nov. 9, 2021, 9:41 a.m. UTC | #1
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,
  

Patch

diff --git a/tools/abilint.cc b/tools/abilint.cc
index b82543d2..3c78200a 100644
--- a/tools/abilint.cc
+++ b/tools/abilint.cc
@@ -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());
diff --git a/tools/abisym.cc b/tools/abisym.cc
index 5978fc99..e03a3222 100644
--- a/tools/abisym.cc
+++ b/tools/abisym.cc
@@ -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;
     }