@@ -1587,12 +1587,11 @@ static enum print_line_t trace_print_print(struct trace_iterator *iter,
1587
1587
{
1588
1588
struct print_entry * field ;
1589
1589
struct trace_seq * s = & iter -> seq ;
1590
- int max = iter -> ent_size - offsetof(struct print_entry , buf );
1591
1590
1592
1591
trace_assign_type (field , iter -> ent );
1593
1592
1594
1593
seq_print_ip_sym (s , field -> ip , flags );
1595
- trace_seq_printf (s , ": %.*s" , max , field -> buf );
1594
+ trace_seq_printf (s , ": %s" , field -> buf );
1596
1595
1597
1596
return trace_handle_return (s );
1598
1597
}
@@ -1601,11 +1600,10 @@ static enum print_line_t trace_print_raw(struct trace_iterator *iter, int flags,
1601
1600
struct trace_event * event )
1602
1601
{
1603
1602
struct print_entry * field ;
1604
- int max = iter -> ent_size - offsetof(struct print_entry , buf );
1605
1603
1606
1604
trace_assign_type (field , iter -> ent );
1607
1605
1608
- trace_seq_printf (& iter -> seq , "# %lx %.* s" , field -> ip , max , field -> buf );
1606
+ trace_seq_printf (& iter -> seq , "# %lx %s" , field -> ip , field -> buf );
1609
1607
1610
1608
return trace_handle_return (& iter -> seq );
1611
1609
}
0 commit comments