Commit ec419f2
committed
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 4544439 commit ec419f2
3 files changed
+588
-809
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 | + | |
| 531 | + | |
| 532 | + | |
523 | 533 | | |
524 | 534 | | |
525 | 535 | | |
| |||
| 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