From a4c7f6c6234e466b53c58bb5b7bbf6690ef7f7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 18 Jan 2022 09:56:05 +0100 Subject: [PATCH] acpi_thermal: fix previous commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sorry for the noise Change-Id: Ic696f48b87d017492e054641c2b9c61a910fed0b Reviewed-on: https://review.haiku-os.org/c/haiku/+/4871 Reviewed-by: Jérôme Duval --- .../kernel/drivers/power/acpi_thermal/acpi_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/drivers/power/acpi_thermal/acpi_thermal.c b/src/add-ons/kernel/drivers/power/acpi_thermal/acpi_thermal.c index 36a3c2e128..d92f117296 100644 --- a/src/add-ons/kernel/drivers/power/acpi_thermal/acpi_thermal.c +++ b/src/add-ons/kernel/drivers/power/acpi_thermal/acpi_thermal.c @@ -64,18 +64,18 @@ acpi_thermal_read(void* _cookie, off_t position, void* buf, size_t* num_bytes) char* str = (char*)buf; acpi_thermal_control(device, drvOpGetThermalType, &therm_info, 0); - snprintf(str, max_len, " Critical Temperature: %"B_PRIu32" %"B_PRIu32" K\n", + snprintf(str, max_len, " Critical Temperature: %" B_PRIu32 ".%" B_PRIu32 " K\n", (therm_info.critical_temp / 10), (therm_info.critical_temp % 10)); max_len -= strlen(str); str += strlen(str); - snprintf(str, max_len, " Current Temperature: %"B_PRIu32" %"B_PRIu32" K\n", + snprintf(str, max_len, " Current Temperature: %" B_PRIu32 ".%" B_PRIu32 " K\n", (therm_info.current_temp / 10), (therm_info.current_temp % 10)); if (therm_info.hot_temp > 0) { max_len -= strlen(str); str += strlen(str); - snprintf(str, max_len, " Hot Temperature: %"B_PRIu32" %"B_PRIu32" K\n", + snprintf(str, max_len, " Hot Temperature: %" B_PRIu32 ".%" B_PRIu32 " K\n", (therm_info.hot_temp / 10), (therm_info.hot_temp % 10)); }