tools/x86/kcpuid: Strip bitfield names leading/trailing whitespace
authorAhmed S. Darwish <darwi@linutronix.de>
Thu, 18 Jul 2024 13:47:45 +0000 (15:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Aug 2024 07:17:19 +0000 (09:17 +0200)
commit9ecbc60a5ede928abdd2b152d828ae0ea8a1e3ed
tree9449886e40dd07f3c4891d74bf50cd75c40cc99a
parentcf96ab1a966b87b09fdd9e8cc8357d2d00776a3a
tools/x86/kcpuid: Strip bitfield names leading/trailing whitespace

While parsing and saving bitfield names from the CSV file, an extra
leading space is copied verbatim.  That extra space is not a big issue
now, but further commits will add a new CSV file with much more padding
for the bitfield's name column.

Strip leading/trailing whitespaces while saving bitfield names.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240718134755.378115-6-darwi@linutronix.de
tools/arch/x86/kcpuid/kcpuid.c