-- == df->previous_freq) {
-+ if (df->freq_table[i] == df->previous_freq)
- len += sprintf(buf + len, "*");
-- } else {
-+ else
- len += sprintf(buf + len, " ");
-- }
-- len += sprintf(buf + len, "%10lu:",
-- df->profile->freq_table[i]);
-+
-+ len += sprintf(buf + len, "%10lu:", df->freq_table[i]);
- for (j = 0; j < max_state; j++)
- len += sprintf(buf + len, "%10u",
- df->stats.trans_table[(i * max_state) + j]);
-@@ -1716,7 +1713,7 @@ static ssize_t trans_stat_store(struct d
++ if (df->freq_table[i]
+ == df->previous_freq) {
+ len += scnprintf(buf + len, PAGE_SIZE - len, "*");
+ } else {
+@@ -1722,7 +1721,7 @@ static ssize_t trans_stat_show(struct de
+ break;
+
+ len += scnprintf(buf + len, PAGE_SIZE - len, "%10lu:",
+- df->profile->freq_table[i]);
++ df->freq_table[i]);
+ for (j = 0; j < max_state; j++) {
+ if (len >= PAGE_SIZE - 1)
+ break;
+@@ -1757,7 +1756,7 @@ static ssize_t trans_stat_store(struct d