Commit c3b1f65
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 f0c31b7 commit c3b1f65
2 files changed
+16
-0
lines changed| 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