linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.49k stars 660 forks source link

ocp: fix GUID output #2515

Closed Ted1642 closed 1 month ago

Ted1642 commented 1 month ago

Some OCP commands are missing a high-order zero in each byte of the output GUID.

This commit fixes the format specifier for the printf function.

ikegami-t commented 1 month ago

Looks good. (If you like we can use the print function print_array() instead.)

(Added) FYI: Still remained the print "%x" in other file: ocp-smart-extended-log.c.

ocp-smart-extended-log.c(316):                                  fprintf(stderr, "%x", scao_guid[j]);
igaw commented 1 month ago

Thanks!