perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernel
[linux-2.6-microblaze.git] / tools / perf / util / pmu.c
index faa8eb2..38dc0c6 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/list.h>
 #include <linux/compiler.h>
+#include <linux/string.h>
 #include <sys/types.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -1339,7 +1340,7 @@ static void wordwrap(char *s, int start, int max, int corr)
                        break;
                s += wlen;
                column += n;
-               s = ltrim(s);
+               s = skip_spaces(s);
        }
 }