int count;
 
        if (fps->control == 0xFFFFFFFF || fps->control > 100)
-               count = scnprintf(buf, PAGE_SIZE, "not-defined:");
+               count = sysfs_emit(buf, "not-defined:");
        else
-               count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control);
+               count = sysfs_emit(buf, "%lld:", fps->control);
 
        if (fps->trip_point == 0xFFFFFFFF || fps->trip_point > 9)
                count += sysfs_emit_at(buf, count, "not-defined:");
        if (status)
                return status;
 
-       return sprintf(buf, "%lld\n", fst.speed);
+       return sysfs_emit(buf, "%lld\n", fst.speed);
 }
 
 static ssize_t show_fine_grain_control(struct device *dev, struct device_attribute *attr, char *buf)