Commit 5de57d52 authored by Adam Wujek's avatar Adam Wujek 💬

lib/netconsole: send packet also on "#" so prompt is sent

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 98cebc4c
......@@ -72,7 +72,12 @@ int netconsole_write_string(const char *s)
*d = *p;
len++;
if (*d == '\n' || len == SH_MAX_LINE_LEN) {
/* send packet on:
* --newline
* --"#", so prompt is send
* --max line length
*/
if (*d == '\n' || *d == '#' || len == SH_MAX_LINE_LEN) {
len += UDP_END;
netconsole_udp_addr.sport = htons(NETCONSOLE_PORT);
getIP((void *)&netconsole_udp_addr.saddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment