summaryrefslogtreecommitdiff
blob: 576c9211786d1b3f16155cdcd7ca4f65b1b2564f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- phc-intel-pack-rev11/acpi-cpufreq.c
+++ phc-intel-pack-rev11/acpi-cpufreq.c
@@ -1175,6 +1175,8 @@
 		vid = extract_vid_from_control(data->original_controls[freq_table[i].driver_data]);
 		count += sprintf(&buf[count], "%u:%u ", fid, vid);
 	}
+	if (count)
+		count--; //remove trailing space
 	count += sprintf(&buf[count], "\n");
 
 	return count;