Commit 2ba22df
nvme-print: introduce nvme_show_err() helper function
This handles the negative error code and the postive status code.
Note: Fix also to handle the negative error for nvme_strerror().
Fixes: 4fb93ad ("nvme-cli: update error handling")
Signed-off-by: Tokunori Ikegami <[email protected]>1 parent 10ca189 commit 2ba22df
3 files changed
+750
-783
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
523 | 531 | | |
524 | 532 | | |
525 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
0 commit comments