|
@@ -319,7 +319,7 @@ ftrace_print_flags_seq(struct trace_seq *p, const char *delim,
|
|
|
|
|
|
/* check for left over flags */
|
|
|
if (flags) {
|
|
|
- if (p->len && delim)
|
|
|
+ if (!first && delim)
|
|
|
trace_seq_puts(p, delim);
|
|
|
trace_seq_printf(p, "0x%lx", flags);
|
|
|
}
|
|
@@ -346,7 +346,7 @@ ftrace_print_symbols_seq(struct trace_seq *p, unsigned long val,
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- if (!p->len)
|
|
|
+ if (ret == (const char *)(p->buffer + p->len))
|
|
|
trace_seq_printf(p, "0x%lx", val);
|
|
|
|
|
|
trace_seq_putc(p, 0);
|
|
@@ -372,7 +372,7 @@ ftrace_print_symbols_seq_u64(struct trace_seq *p, unsigned long long val,
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- if (!p->len)
|
|
|
+ if (ret == (const char *)(p->buffer + p->len))
|
|
|
trace_seq_printf(p, "0x%llx", val);
|
|
|
|
|
|
trace_seq_putc(p, 0);
|