Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/power turbostat: Remove redundant newlines from err(3) strings

err(3) supplies a newline at the end of the string.
No need to end err(3) strings with '\n'.

Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown a9c7a1a2 b991074a

+5 -5
+5 -5
tools/power/x86/turbostat/turbostat.c
··· 3150 3150 actual_read_size = read(fd_llc_percpu[cpu], &r, expected_read_size); 3151 3151 3152 3152 if (actual_read_size == -1) 3153 - err(-1, "%s(cpu%d,) %d,,%ld\n", __func__, cpu, fd_llc_percpu[cpu], expected_read_size); 3153 + err(-1, "%s(cpu%d,) %d,,%ld", __func__, cpu, fd_llc_percpu[cpu], expected_read_size); 3154 3154 3155 3155 llc->references = r.llc.references; 3156 3156 llc->misses = r.llc.misses; ··· 6134 6134 6135 6135 pos = fgets(buf, 1024, fp); 6136 6136 if (!pos) 6137 - err(1, "%s: file read failed\n", PATH_EFFECTIVE_CPUS); 6137 + err(1, "%s: file read failed", PATH_EFFECTIVE_CPUS); 6138 6138 6139 6139 fclose(fp); 6140 6140 ··· 6151 6151 update_effective_str(startup); 6152 6152 6153 6153 if (parse_cpu_str(cpu_effective_str, cpu_effective_set, cpu_effective_setsize)) 6154 - err(1, "%s: cpu str malformat %s\n", PATH_EFFECTIVE_CPUS, cpu_effective_str); 6154 + err(1, "%s: cpu str malformat %s", PATH_EFFECTIVE_CPUS, cpu_effective_str); 6155 6155 } 6156 6156 6157 6157 void linux_perf_init(void); ··· 6818 6818 6819 6819 free_and_exit: 6820 6820 if (cap_free(caps) == -1) 6821 - err(-6, "cap_free\n"); 6821 + err(-6, "cap_free"); 6822 6822 6823 6823 return ret; 6824 6824 } ··· 7021 7021 sprintf(path_base, "/sys/devices/system/cpu/intel_uncore_frequency/uncore%02d", i); 7022 7022 7023 7023 if (access(path_base, R_OK)) 7024 - err(1, "%s: %s\n", __func__, path_base); 7024 + err(1, "%s: %s", __func__, path_base); 7025 7025 7026 7026 sprintf(path, "%s/package_id", path_base); 7027 7027 package_id = read_sysfs_int(path);