Commit fac7027
committed
zephyr/shell: fix module_list and clock_status output
Three fixes:
- module_list: search for TEXT segment by type flag instead of
assuming segment[0] is always TEXT (built-in modules have no
loaded segments so segment[0].length is 0)
- module_list: raise CONFIG_SHELL_PRINTF_BUFF_SIZE to 256 in
shell_overlay.conf (was 30, causing mid-line truncation)
- module_list: add k_msleep(5) between module entries to allow the
snd_sof_serial TX FIFO to drain (prevents byte loss on fast output)
- clock_status: replace %.1f (unsupported by Zephyr shell printf) with
integer MHz whole + tenth using integer arithmetic1 parent a844610 commit fac7027
2 files changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
387 | 389 | | |
388 | | - | |
389 | | - | |
| 390 | + | |
| 391 | + | |
390 | 392 | | |
391 | 393 | | |
392 | 394 | | |
| |||
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
423 | | - | |
| 425 | + | |
424 | 426 | | |
| 427 | + | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| |||
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
436 | | - | |
437 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
438 | 448 | | |
439 | 449 | | |
440 | 450 | | |
| |||
456 | 466 | | |
457 | 467 | | |
458 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
459 | 472 | | |
460 | 473 | | |
461 | 474 | | |
| |||
0 commit comments