diff options
author | Thierry Reding <[email protected]> | 2020-11-10 08:37:57 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-12 14:53:33 -0800 |
commit | c9f64d1fc101c64ea2be1b2e562b4395127befc9 (patch) | |
tree | 4ba047ee5efe32fe3835d9cf857286eddc3e01ed /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 203cb737fbe09cc6b57d4bd46be7977e72d49281 (diff) |
net: ipconfig: Avoid spurious blank lines in boot log
When dumping the name and NTP servers advertised by DHCP, a blank line
is emitted if either of the lists is empty. This can lead to confusing
issues such as the blank line getting flagged as warning. This happens
because the blank line is the result of pr_cont("\n") and that may see
its level corrupted by some other driver concurrently writing to the
console.
Fix this by making sure that the terminating newline is only emitted
if at least one entry in the lists was printed before.
Reported-by: Jon Hunter <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions