We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73276e3 commit c3b2b26Copy full SHA for c3b2b26
drivers/tty/n_tty.c
@@ -99,7 +99,7 @@ struct n_tty_data {
99
100
/* private to n_tty_receive_overrun (single-threaded) */
101
unsigned long overrun_time;
102
- int num_overrun;
+ unsigned int num_overrun;
103
104
/* non-atomic */
105
bool no_room;
@@ -1174,7 +1174,7 @@ static void n_tty_receive_overrun(const struct tty_struct *tty)
1174
1175
ldata->num_overrun++;
1176
if (time_is_before_jiffies(ldata->overrun_time + HZ)) {
1177
- tty_warn(tty, "%d input overrun(s)\n", ldata->num_overrun);
+ tty_warn(tty, "%u input overrun(s)\n", ldata->num_overrun);
1178
ldata->overrun_time = jiffies;
1179
ldata->num_overrun = 0;
1180
}
0 commit comments