[dpdk-dev] Remove the extra blank lines in the output

Message ID 1449600737-48938-1-git-send-email-keith.wiles@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Wiles, Keith Dec. 8, 2015, 6:52 p.m. UTC
  The output for the core list included an extra linefeed making
the number of lines displayed much larger then required.

Signed-off-by: Keith Wiles <keith.wiles@intel.com>
---
 tools/cpu_layout.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon March 24, 2016, 8:18 p.m. UTC | #1
2015-12-08 12:52, Keith Wiles:
> The output for the core list included an extra linefeed making
> the number of lines displayed much larger then required.
> 
> Signed-off-by: Keith Wiles <keith.wiles@intel.com>

Applied, thanks
  

Patch

diff --git a/tools/cpu_layout.py b/tools/cpu_layout.py
index 20a409d..d38d0b5 100755
--- a/tools/cpu_layout.py
+++ b/tools/cpu_layout.py
@@ -92,4 +92,4 @@  for c in cores:
         print "Core %s" % str(c).ljust(max_core_id_len),
         for s in sockets:
                 print str(core_map[(s,c)]).ljust(max_core_map_len),
-        print "\n"
+        print ""