"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsysinfo-0.2.2/Linux/cpuinfo_sh3.c" between
linux_logo-5.11.tar.gz and linux_logo-6.0.tar.gz

About: Linux_Logo - an ANSI Color Penguin Logo that can be run at bootup. Also shows some system info.

cpuinfo_sh3.c  (linux_logo-5.11):cpuinfo_sh3.c  (linux_logo-6.0)
skipping to change at line 37 skipping to change at line 37
if ( !(strncmp(temp_string,"cpu family",9))) { if ( !(strncmp(temp_string,"cpu family",9))) {
strncpy(model_string,parse_line(temp_string),BUFSIZ); strncpy(model_string,parse_line(temp_string),BUFSIZ);
clip_lf(model_string,BUFSIZ); clip_lf(model_string,BUFSIZ);
} }
/* Ugh why must people play with capitalization */ /* Ugh why must people play with capitalization */
if ( !(strncmp(temp_string,"bogomips",8)) || if ( !(strncmp(temp_string,"bogomips",8)) ||
!(strncmp(temp_string,"BogoMips",8)) || !(strncmp(temp_string,"BogoMips",8)) ||
!(strncmp(temp_string,"BogoMIPS",8))) { !(strncmp(temp_string,"BogoMIPS",8))) {
bogomips+=atof(parse_line(temp_string)); bogomips+=atof(parse_line(temp_string));
cpu_count++; /* Cheating way to detect number of intel CPU's */ cpu_count++; /* Cheating way to detect number of intel CPUs */
} }
} }
} }
strncpy(cpu_info->chip_vendor,"SH",SYSINFO_CHIP_VENDOR_SIZE); strncpy(cpu_info->chip_vendor,"SH",SYSINFO_CHIP_VENDOR_SIZE);
strncpy(cpu_info->chip_type,model_string,SYSINFO_CHIP_TYPE_SIZE); strncpy(cpu_info->chip_type,model_string,SYSINFO_CHIP_TYPE_SIZE);
cpu_info->num_cpus=cpu_count; cpu_info->num_cpus=cpu_count;
cpu_info->megahertz=0.0; cpu_info->megahertz=0.0;
cpu_info->bogomips=bogomips; cpu_info->bogomips=bogomips;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)