Commit d884f66
committed
nvme-print: suppress output when no ctrl is present for list-subsys
When using list-subsys with the optional device filter argument, the
subsystem might not have any controller associated anymore, it was
filtered out. Avoid outputting any whitespace (or empty json data
structures) in this case.
Signed-off-by: Daniel Wagner <[email protected]>1 parent 66d115a commit d884f66
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
2561 | 2569 | | |
2562 | 2570 | | |
2563 | 2571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1137 | 1145 | | |
1138 | 1146 | | |
1139 | 1147 | | |
| |||
0 commit comments