@@ -661,7 +661,7 @@ static ssize_t vf_type_show(struct device *dev,
661
661
msg = "Invalid" ;
662
662
}
663
663
664
- return scnprintf (buf , PAGE_SIZE , "%s\n" , msg );
664
+ return sysfs_emit (buf , "%s\n" , msg );
665
665
}
666
666
667
667
static ssize_t vf_engine_group_show (struct device * dev ,
@@ -670,7 +670,7 @@ static ssize_t vf_engine_group_show(struct device *dev,
670
670
{
671
671
struct otx_cptvf * cptvf = dev_get_drvdata (dev );
672
672
673
- return scnprintf (buf , PAGE_SIZE , "%d\n" , cptvf -> vfgrp );
673
+ return sysfs_emit (buf , "%d\n" , cptvf -> vfgrp );
674
674
}
675
675
676
676
static ssize_t vf_engine_group_store (struct device * dev ,
@@ -706,7 +706,7 @@ static ssize_t vf_coalesc_time_wait_show(struct device *dev,
706
706
{
707
707
struct otx_cptvf * cptvf = dev_get_drvdata (dev );
708
708
709
- return scnprintf (buf , PAGE_SIZE , "%d\n" ,
709
+ return sysfs_emit (buf , "%d\n" ,
710
710
cptvf_read_vq_done_timewait (cptvf ));
711
711
}
712
712
@@ -716,7 +716,7 @@ static ssize_t vf_coalesc_num_wait_show(struct device *dev,
716
716
{
717
717
struct otx_cptvf * cptvf = dev_get_drvdata (dev );
718
718
719
- return scnprintf (buf , PAGE_SIZE , "%d\n" ,
719
+ return sysfs_emit (buf , "%d\n" ,
720
720
cptvf_read_vq_done_numwait (cptvf ));
721
721
}
722
722
0 commit comments