@@ -155,7 +155,7 @@ static struct json_object *util_cxl_memdev_health_to_json(
}
field = cxl_cmd_health_info_get_temperature(cmd);
- if (field != 0xffff) {
+ if (field != 0x7fff) {
jobj = json_object_new_int(field);
if (jobj)
json_object_object_add(jhealth, "temperature", jobj);
@@ -324,7 +324,7 @@ struct cxl_cmd_set_partition {
#define CXL_CMD_HEALTH_INFO_EXT_CORRECTED_PERSISTENT_WARNING (1)
#define CXL_CMD_HEALTH_INFO_LIFE_USED_NOT_IMPL 0xff
-#define CXL_CMD_HEALTH_INFO_TEMPERATURE_NOT_IMPL 0xffff
+#define CXL_CMD_HEALTH_INFO_TEMPERATURE_NOT_IMPL 0x7fff
static inline int check_kmod(struct kmod_ctx *kmod_ctx)
{