Commit fae35ae
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 97c8bb0 commit fae35ae
2 files changed
Lines changed: 15 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 | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
1135 | 1137 | | |
1136 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1137 | 1144 | | |
1138 | 1145 | | |
1139 | 1146 | | |
| |||
0 commit comments