Merge tag 'drm-next-2021-04-28' of git://anongit.freedesktop.org/drm/drm
[linux-2.6-microblaze.git] / drivers / perf / arm_dsu_pmu.c
index 0459a34..196faea 100644 (file)
@@ -136,8 +136,7 @@ static ssize_t dsu_pmu_sysfs_event_show(struct device *dev,
 {
        struct dev_ext_attribute *eattr = container_of(attr,
                                        struct dev_ext_attribute, attr);
-       return snprintf(buf, PAGE_SIZE, "event=0x%lx\n",
-                                        (unsigned long)eattr->var);
+       return sysfs_emit(buf, "event=0x%lx\n", (unsigned long)eattr->var);
 }
 
 static ssize_t dsu_pmu_sysfs_format_show(struct device *dev,
@@ -146,7 +145,7 @@ static ssize_t dsu_pmu_sysfs_format_show(struct device *dev,
 {
        struct dev_ext_attribute *eattr = container_of(attr,
                                        struct dev_ext_attribute, attr);
-       return snprintf(buf, PAGE_SIZE, "%s\n", (char *)eattr->var);
+       return sysfs_emit(buf, "%s\n", (char *)eattr->var);
 }
 
 static ssize_t dsu_pmu_cpumask_show(struct device *dev,