Commit 49834c1
committed
logging: fix accidental tailing \r\n on certain SerialLoggingReporter messages
`SerialLoggingReporter._create_message()` appends the representations for
`\r\n` to each log message unconditionally. But `\r\n` must only be
appended when splitting serial input on `\r\n` in
`SerialLoggingReporter.notify()`.
Fix that by appending actual `\r\n` to the data to be logged. Do that
before its representation is generated. A future commit can then add that
data to the `extra` data in the log message allowing reconstruction of
the serial data sent/received from the logs.
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent be8f3a2 commit 49834c1
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
0 commit comments