From 676aa1bde180dcd9bef0326fb80fc27b327f36a9 Mon Sep 17 00:00:00 2001 From: CodingWithAnxiety Date: Fri, 17 May 2024 12:47:25 -0400 Subject: [PATCH] Fix endls and typos --- DellFan.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DellFan.cpp b/DellFan.cpp index 3250c92..1ebdd60 100644 --- a/DellFan.cpp +++ b/DellFan.cpp @@ -119,7 +119,7 @@ void Hwmon_get() // } } if (dellsmm == ""){ - std::cout << "Cannot find Dell-smm-hwmon. Try 'modprobe dell-smm-hwmon restricted=0 ignore_dmi=1'. " << std::endl; + std::cout << "Cannot find Dell-smm-hwmon. Try 'modprobe dell-smm-hwmon restricted=0 ignore_dmi=1'. " << "\n"; exit(EXIT_FAILURE); } }; @@ -227,8 +227,8 @@ uint8_t hex_to_EC(uint8_t hex){ // Prints a status update. void print_status() { - std::cout << "Current fan speeds : " << cpu_fan << " RPM and " << gpu_fan << " RPM. " << std::endl; - std::cout << "CPU and GPU temperatures : " << cpu_temp/1000 << "°C and " << gpu_temp/1000 << "°C. " << std::endl; + std::cout << "Current fan speeds : " << cpu_fan << " RPM and " << gpu_fan << " RPM." << "\n"; + std::cout << "CPU and GPU temperatures : " << cpu_temp/1000 << "°C and " << gpu_temp/1000 << "°C." << "\n"; std::cout << "\033[2F"; if (verbose) std::cout << "\033[1F"; }; @@ -258,7 +258,7 @@ inline void fan_update(){ set_gpu_fan(gpu_update); if (verbose) { - std::cout <<"CPU and GPU fans update : "<< cpu_update <<" and "<< gpu_update << ". "<