Skip to content

Commit c8fdebb

Browse files
author
Sivaprasad Gutha
committed
Updating Micron plugin with latest products support by following kernal coding style.
Fixed compilation issues from clang build. Signed-off-by: Sivaprasad Gutha <[email protected]>
1 parent d8c4b39 commit c8fdebb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/micron/micron-nvme.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,7 @@ static int micron_drive_info(int argc, char **argv, struct command *cmd,
25722572

25732573
if (custId == MICRON_CUST_ID_GG) {
25742574
if (dinfo.ftl_unit_size) {
2575-
sprintf(tempstr, "%hhu B", dinfo.ftl_unit_size*1024);
2575+
sprintf(tempstr, "%hhu B", (unsigned char)dinfo.ftl_unit_size*1024);
25762576
json_object_add_value_string(pinfo, "FTL_unit_size", tempstr);
25772577
}
25782578

@@ -2615,7 +2615,7 @@ static int micron_drive_info(int argc, char **argv, struct command *cmd,
26152615

26162616
if (custId == MICRON_CUST_ID_GG) {
26172617
if (dinfo.ftl_unit_size)
2618-
printf("FTL_unit_size: %hhu B\n", dinfo.ftl_unit_size*1024);
2618+
printf("FTL_unit_size: %hhu B\n", (unsigned char)dinfo.ftl_unit_size*1024);
26192619

26202620
if (dinfo.bs_ver_major != 0 || dinfo.bs_ver_minor != 0) {
26212621
printf(

0 commit comments

Comments
 (0)