In the mi-mctp example, we're incorrectly reporting the percent drive
life used as the controller status. Fix the controller status output
to use the correct (ccs) field.
Signed-off-by: Lior Weintraub <liorw@pliops.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
printf(" smart warnings: 0x%x\n", ss_health.sw);
printf(" composite temp: %d\n", ss_health.ctemp);
printf(" drive life used: %d%%\n", ss_health.pdlu);
- printf(" controller status: 0x%04x\n", le16_to_cpu(ss_health.pdlu));
+ printf(" controller status: 0x%04x\n", le16_to_cpu(ss_health.ccs));
return 0;
}