]> sourceware.org Git - libabigail.git/commitdiff
Fix trivial typo when printing message
authortangmeng <tangmeng@uniontech.com>
Wed, 3 Nov 2021 06:57:25 +0000 (14:57 +0800)
committerDodji Seketeli <dodji@redhat.com>
Tue, 9 Nov 2021 09:40:29 +0000 (10:40 +0100)
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 (main): End the 'FILE_TYPE_UNKNOWN' tips with a
newline.
* tools/abisym.cc (main): Add a newline after version string.

Signed-off-by: tangmeng <tangmeng@uniontech.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abilint.cc
tools/abisym.cc

index 88cf4589012ebb7f64a506cfe4ad30484a8469db..f14e758b596c4bf92accd6b72aa75326464aaf1c 100644 (file)
@@ -346,7 +346,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());
index 5978fc99c96083bcea3f95bc1e235d4cde25a9ad..e03a3222be7a0b94c061adc6b912f4db8bd4f81d 100644 (file)
@@ -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;
     }
 
This page took 0.073755 seconds and 5 git commands to generate.