@@ -296,7 +296,7 @@ impl RecordReader for CPUSocket {
296296 } ) ,
297297 Err ( e) => {
298298 error ! (
299- "Could'nt get MSR value for {}: {}" ,
299+ "Couldn't get MSR value for {}: {}" ,
300300 MSR_PKG_ENERGY_STATUS , e
301301 ) ;
302302 Ok ( Record {
@@ -338,7 +338,7 @@ impl RecordReader for Domain {
338338 value : rec. value ,
339339 } ) ,
340340 Err ( e) => {
341- error ! ( "Could'nt get MSR value for {}: {}" , msr_addr, e) ;
341+ error ! ( "Couldn't get MSR value for {}: {}" , msr_addr, e) ;
342342 Ok ( Record {
343343 timestamp : current_system_time_since_epoch ( ) ,
344344 value : String :: from ( "0" ) ,
@@ -388,7 +388,7 @@ impl Sensor for MsrRAPLSensor {
388388 }
389389 }
390390 None => {
391- panic ! ( "Could'nt get cpuid data." ) ;
391+ panic ! ( "Couldn't get cpuid data." ) ;
392392 }
393393 }
394394 let mut i: u16 = 0 ;
@@ -531,7 +531,7 @@ impl Sensor for MsrRAPLSensor {
531531 }
532532 }
533533 None => {
534- panic ! ( "Could'nt get core ids from core_affinity." ) ;
534+ panic ! ( "Couldn't get core ids from core_affinity." ) ;
535535 }
536536 }
537537 if let Some ( info) = CpuId :: new ( ) . get_extended_topology_info ( ) {
@@ -542,7 +542,7 @@ impl Sensor for MsrRAPLSensor {
542542 }
543543 }
544544 } else {
545- error ! ( "Could'nt set thread affinity !" ) ;
545+ error ! ( "Couldn't set thread affinity !" ) ;
546546 let last_error = GetLastError ( ) ;
547547 panic ! ( "Error was : {:?}" , last_error) ;
548548 }
@@ -637,7 +637,7 @@ impl Sensor for MsrRAPLSensor {
637637 ) )
638638 }
639639 Err ( e) => {
640- warn ! ( "Could'nt add Dram domain: {}" , e) ;
640+ warn ! ( "Couldn't add Dram domain: {}" , e) ;
641641 }
642642 }
643643 match get_msr_value ( core_id as usize , MSR_PP0_ENERGY_STATUS as u64 , & sensor_data) {
@@ -657,7 +657,7 @@ impl Sensor for MsrRAPLSensor {
657657 ) )
658658 }
659659 Err ( e) => {
660- warn ! ( "Could'nt add Core domain: {}" , e) ;
660+ warn ! ( "Couldn't add Core domain: {}" , e) ;
661661 }
662662 }
663663 match get_msr_value ( core_id as usize , MSR_PP1_ENERGY_STATUS as u64 , & sensor_data) {
@@ -677,14 +677,14 @@ impl Sensor for MsrRAPLSensor {
677677 ) )
678678 }
679679 Err ( e) => {
680- warn ! ( "Could'nt add Uncore domain: {}" , e) ;
680+ warn ! ( "Couldn't add Uncore domain: {}" , e) ;
681681 }
682682 }
683683 //match get_msr_value(core_id as usize, MSR_PLATFORM_ENERGY_STATUS as u64, &sensor_data) {
684684 // Ok(rec) => {
685685 // },
686686 // Err(e) => {
687- // error!("Could'nt find Platform/PSYS domain.");
687+ // error!("Couldn't find Platform/PSYS domain.");
688688 // }
689689 //}
690690 }
@@ -699,7 +699,7 @@ impl Sensor for MsrRAPLSensor {
699699 . insert ( String :: from ( "psys" ) , String :: from ( "" ) ) ;
700700 }
701701 Err ( e) => {
702- warn ! ( "Could'nt add Uncore domain: {}" , e) ;
702+ warn ! ( "Couldn't add Uncore domain: {}" , e) ;
703703 }
704704 }
705705 }
@@ -740,7 +740,7 @@ pub unsafe fn get_msr_value(
740740 if thread_affinity_res. as_bool ( ) {
741741 debug ! ( "Thread affinity found : {:?}" , thread_group_affinity) ;
742742 } else {
743- error ! ( "Could'nt get thread group affinity" ) ;
743+ error ! ( "Couldn't get thread group affinity" ) ;
744744 }
745745 let mut process_group_array: [ u16 ; 8 ] = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] ;
746746 let mut process_group_array_len = 8 ;
@@ -752,7 +752,7 @@ pub unsafe fn get_msr_value(
752752 if process_affinity_res. as_bool ( ) {
753753 debug ! ( "Process affinity found: {:?}" , process_group_array) ;
754754 } else {
755- error ! ( "Could'nt get process group affinity" ) ;
755+ error ! ( "Couldn't get process group affinity" ) ;
756756 error ! ( "Error was : {:?}" , GetLastError ( ) ) ;
757757 }
758758 debug ! ( "Core ID requested to the driver : {}" , core_id) ;
0 commit comments