Commit a23c129
tools/power turbostat: Cleanup print helper functions
Factor error-prone turnary expressions into locak 'sep' variable.
Remove the redundant parentheses around sprintf() calls.
Remove an unnecessary cast to "unsigned int" by using the '%08llx' instead
of '%08x'.
No functional changes.
[lenb: fix typo, simplify]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>1 parent cdbefe9 commit a23c129
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2835 | 2835 | | |
2836 | 2836 | | |
2837 | 2837 | | |
| 2838 | + | |
2838 | 2839 | | |
2839 | 2840 | | |
2840 | | - | |
| 2841 | + | |
2841 | 2842 | | |
2842 | | - | |
| 2843 | + | |
2843 | 2844 | | |
2844 | 2845 | | |
2845 | 2846 | | |
2846 | 2847 | | |
| 2848 | + | |
| 2849 | + | |
2847 | 2850 | | |
2848 | | - | |
| 2851 | + | |
2849 | 2852 | | |
2850 | | - | |
| 2853 | + | |
2851 | 2854 | | |
2852 | 2855 | | |
2853 | 2856 | | |
2854 | 2857 | | |
| 2858 | + | |
| 2859 | + | |
2855 | 2860 | | |
2856 | 2861 | | |
2857 | | - | |
| 2862 | + | |
2858 | 2863 | | |
2859 | 2864 | | |
2860 | 2865 | | |
2861 | 2866 | | |
2862 | | - | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2863 | 2870 | | |
2864 | 2871 | | |
2865 | 2872 | | |
| |||
0 commit comments