abisym: Remove leading space in output.
authorGiuliano Procida <gprocida@google.com>
Tue, 10 Mar 2020 10:31:13 +0000 (10:31 +0000)
committerDodji Seketeli <dodji@redhat.com>
Tue, 10 Mar 2020 17:03:03 +0000 (18:03 +0100)
When abisym reports a symbol as found, it currently emits a leading
space. It does not do this when reporting a symbol as not found.

This patch removes the leading space.

* tools/abisym.cc (main): Remove leading space from output.
* tests/data/test-lookup-syms/test0-report.txt: Remove leading
space from expected output.
* tests/data/test-lookup-syms/test01-report.txt: Ditto.
* tests/data/test-lookup-syms/test02-report.txt: Ditto.
* tests/data/test-lookup-syms/test1-1-report.txt: Ditto.

Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/data/test-lookup-syms/test0-report.txt
tests/data/test-lookup-syms/test01-report.txt
tests/data/test-lookup-syms/test02-report.txt
tests/data/test-lookup-syms/test1-1-report.txt
tools/abisym.cc

index 51042d4a59ecf705630b8f7a41b29504cc9fcd0d..2806123fa437b2b5c00d209918e8daa290e231e8 100644 (file)
@@ -1 +1 @@
- found symbol 'main', an instance of function symbol type of global binding
+found symbol 'main', an instance of function symbol type of global binding
index ba8f909e1ae1d60db89a0a3253b72115cd5f6084..ce80129e40e4fe03e96d95279757ebe216787fc9 100644 (file)
@@ -1 +1 @@
- found symbol 'foo', an instance of function symbol type of global binding
+found symbol 'foo', an instance of function symbol type of global binding
index b374d17ed94d9e6ebb8eba10a0dbb5fba8ea5c38..d5e29945b7c531260d001c1ee6cebfdc1406889b 100644 (file)
@@ -1 +1 @@
- found symbol 'bar(char)' (_Z3barc), an instance of function symbol type of global binding
+found symbol 'bar(char)' (_Z3barc), an instance of function symbol type of global binding
index 15a3d416a3cf591f9b91172ffda7c10ce8d9086d..2904c6d2398af216139a4c11b24a68f3a93ac743 100644 (file)
@@ -1 +1 @@
- found symbol 'foo', an instance of function symbol type of global binding, of versions 'VERSION_2.0', 'VERSION_1.0'
+found symbol 'foo', an instance of function symbol type of global binding, of versions 'VERSION_2.0', 'VERSION_1.0'
index da24f72a4272a51d6f2a65925472f330780f489c..2da45b41ee08d1e264063666d9a044d9ddc277c3 100644 (file)
@@ -159,7 +159,7 @@ main(int argc, char* argv[])
     }
 
   elf_symbol_sptr sym = syms[0];
-  cout << " found symbol '" << n << "'";
+  cout << "found symbol '" << n << "'";
   if (n != sym->get_name())
     cout << " (" << sym->get_name() << ")";
   cout << ", an instance of "