perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernel
[linux-2.6-microblaze.git] / tools / perf / ui / gtk / hists.c
index 0c08890..6341c42 100644 (file)
@@ -459,7 +459,7 @@ static void perf_gtk__add_hierarchy_entries(struct hists *hists,
                        advance_hpp(hpp, ret + 2);
                }
 
-               gtk_tree_store_set(store, &iter, col_idx, ltrim(rtrim(bf)), -1);
+               gtk_tree_store_set(store, &iter, col_idx, trim(bf), -1);
 
                if (!he->leaf) {
                        hpp->buf = bf;
@@ -555,7 +555,7 @@ static void perf_gtk__show_hierarchy(GtkWidget *window, struct hists *hists,
                        first_col = false;
 
                        fmt->header(fmt, &hpp, hists, 0, NULL);
-                       strcat(buf, ltrim(rtrim(hpp.buf)));
+                       strcat(buf, trim(hpp.buf));
                }
        }