Commit d5e27a8
committed
refactor: drop Stdout argument from setup_serial_device()
This is also a singleton, so passing it around makes not very much
sense. Also move the call to set_stdout_nonblocking() that was done
(almost) everywhere before calling setup_serial_device() into the
function. This call was _not_ done on the ARM restore path, but that
seems more like a bug rather than intentional, so do it now.
This helps because later this function will query the logger
configuration to determine whether serial output should go to a file
instead, in which case the call to set_stdout_nonblocking() is not
needed.
Signed-off-by: Patrick Roy <[email protected]>1 parent 28f7ec2 commit d5e27a8
3 files changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 162 | | |
166 | | - | |
| 163 | + | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
| |||
553 | 550 | | |
554 | 551 | | |
555 | 552 | | |
556 | | - | |
557 | 553 | | |
| 554 | + | |
| 555 | + | |
558 | 556 | | |
559 | 557 | | |
560 | 558 | | |
| |||
564 | 562 | | |
565 | 563 | | |
566 | 564 | | |
567 | | - | |
| 565 | + | |
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
| |||
625 | 623 | | |
626 | 624 | | |
627 | 625 | | |
628 | | - | |
629 | | - | |
630 | | - | |
| 626 | + | |
631 | 627 | | |
632 | 628 | | |
633 | 629 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
| 406 | + | |
| 407 | + | |
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
| |||
0 commit comments