[dpdk-dev] [PATCH] cpu_layout.py: adjust output format to align

2014-05-27 Thread Shannon Zhao
Bug: when "core id" is greater than 9, the cpu_layout.py output doesn't align. Socket 0Socket 1 - - Core 9 [4, 16] [10, 22] Core 10 [5, 17] [11, 23] Solution: adjust output format to align Socket 0Socket 1

[dpdk-dev] [PATCH] cpu_layout.py: adjust output format to align

2014-05-27 Thread Thomas Monjalon
Hi, Your patch doesn't apply correctly. Could you check it, please? I have also a comment inlined: 2014-05-27 17:41, Shannon Zhao: > - print "\t", core_map[(s,c)], > + print core_map[(s,c)],"\t", Is it possible to fix a minimum alignment of 2 characters? It could pre

[dpdk-dev] [PATCH] cpu_layout.py: adjust output format to align

2014-05-28 Thread Shannon Zhao
Hi Thomas, Thanks for your reply. I have checked my patch. It doesn't apply correctly when "core id" is greater than 2 characters. Following is my revised patch. It's based on the maximum length of the "core id" and "processor" to adjust the alignment length. Bug: when "core id" is greater t

[dpdk-dev] [PATCH] cpu_layout.py: adjust output format to align

2014-05-28 Thread Thomas Monjalon
Hi, 2014-05-28 11:02, Shannon Zhao: > I have checked my patch. It doesn't apply correctly when "core id" is > greater than 2 characters. > > Following is my revised patch. It's based on the maximum length of the "core > id" and "processor" to adjust the alignment length. Thank you for reworking