Merge "dumpstate: build breakage @2482293"
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c
index 4ae2066..47acb63 100644
--- a/cmds/dumpstate/utils.c
+++ b/cmds/dumpstate/utils.c
@@ -796,7 +796,7 @@
"Undefined",
"Normal",
"Warning (consumed 80% of reserve)",
- "Urgent (consumeed 90% of reserve)"
+ "Urgent (consumed 90% of reserve)"
};
printf("------ %s Extended CSD ------\n", ext_csd_path);
@@ -814,7 +814,7 @@
printf("*** %s: %s\n\n", ext_csd_path, strerror(errno));
return;
}
- if (bytes_read < (ssize_t)(EXT_CSD_REV * sizeof(hex))) {
+ if (bytes_read < (ssize_t)(EXT_CSD_REV * sizeof(struct hex))) {
printf("*** %s: truncated content %zd\n\n", ext_csd_path, bytes_read);
return;
}
@@ -836,7 +836,7 @@
return;
}
- if (bytes_read < (ssize_t)(EXT_PRE_EOL_INFO * sizeof(hex))) {
+ if (bytes_read < (ssize_t)(EXT_PRE_EOL_INFO * sizeof(struct hex))) {
printf("*** %s: truncated content %zd\n\n", ext_csd_path, bytes_read);
return;
}
@@ -872,7 +872,7 @@
"Exceeded the maximum estimated device lifetime",
};
- if (bytes_read < (ssize_t)(lifetime * sizeof(hex))) {
+ if (bytes_read < (ssize_t)(lifetime * sizeof(struct hex))) {
printf("*** %s: truncated content %zd\n", ext_csd_path, bytes_read);
break;
}