diff options
-rw-r--r-- | drivers/bus/arm-cci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 0ce5e2d65a06..84fd66057dad 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c | |||
@@ -806,8 +806,8 @@ static int cci_pmu_event_init(struct perf_event *event) | |||
806 | static ssize_t pmu_attr_cpumask_show(struct device *dev, | 806 | static ssize_t pmu_attr_cpumask_show(struct device *dev, |
807 | struct device_attribute *attr, char *buf) | 807 | struct device_attribute *attr, char *buf) |
808 | { | 808 | { |
809 | int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &pmu->cpus); | 809 | int n = scnprintf(buf, PAGE_SIZE - 1, "%*pbl", |
810 | 810 | cpumask_pr_args(&pmu->cpus)); | |
811 | buf[n++] = '\n'; | 811 | buf[n++] = '\n'; |
812 | buf[n] = '\0'; | 812 | buf[n] = '\0'; |
813 | return n; | 813 | return n; |