aboutsummaryrefslogtreecommitdiff
path: root/sbin/nvmecontrol/modules/intel/intel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/nvmecontrol/modules/intel/intel.c')
-rw-r--r--sbin/nvmecontrol/modules/intel/intel.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/nvmecontrol/modules/intel/intel.c b/sbin/nvmecontrol/modules/intel/intel.c
index 8e3ed9e06cb9..c94fdb356608 100644
--- a/sbin/nvmecontrol/modules/intel/intel.c
+++ b/sbin/nvmecontrol/modules/intel/intel.c
@@ -1,5 +1,5 @@
/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ * SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2013 EMC Corp.
* All rights reserved.
@@ -29,9 +29,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/param.h>
#include <sys/ioccom.h>
@@ -64,18 +61,21 @@ print_intel_temp_stats(const struct nvme_controller_data *cdata __unused, void *
printf("=====================\n");
printf("Current: ");
- print_temp(temp->current);
- printf("Overtemp Last Flags %#jx\n", (uintmax_t)temp->overtemp_flag_last);
- printf("Overtemp Lifetime Flags %#jx\n", (uintmax_t)temp->overtemp_flag_life);
+ print_temp_C(letoh(temp->current));
+ printf("Overtemp Last Flags %#jx\n",
+ (uintmax_t)letoh(temp->overtemp_flag_last));
+ printf("Overtemp Lifetime Flags %#jx\n",
+ (uintmax_t)letoh(temp->overtemp_flag_life));
printf("Max Temperature ");
- print_temp(temp->max_temp);
+ print_temp_C(letoh(temp->max_temp));
printf("Min Temperature ");
- print_temp(temp->min_temp);
+ print_temp_C(letoh(temp->min_temp));
printf("Max Operating Temperature ");
- print_temp(temp->max_oper_temp);
+ print_temp_C(letoh(temp->max_oper_temp));
printf("Min Operating Temperature ");
- print_temp(temp->min_oper_temp);
- printf("Estimated Temperature Offset: %ju C/K\n", (uintmax_t)temp->est_offset);
+ print_temp_C(letoh(temp->min_oper_temp));
+ printf("Estimated Temperature Offset: %ju C/K\n",
+ (uintmax_t)letoh(temp->est_offset));
}
/*