File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ static ssize_t enabled_show(struct kobject *kobj,
402
402
struct klp_patch * patch ;
403
403
404
404
patch = container_of (kobj , struct klp_patch , kobj );
405
- return snprintf (buf , PAGE_SIZE - 1 , "%d\n" , patch -> enabled );
405
+ return sysfs_emit (buf , "%d\n" , patch -> enabled );
406
406
}
407
407
408
408
static ssize_t transition_show (struct kobject * kobj ,
@@ -411,8 +411,7 @@ static ssize_t transition_show(struct kobject *kobj,
411
411
struct klp_patch * patch ;
412
412
413
413
patch = container_of (kobj , struct klp_patch , kobj );
414
- return snprintf (buf , PAGE_SIZE - 1 , "%d\n" ,
415
- patch == klp_transition_patch );
414
+ return sysfs_emit (buf , "%d\n" , patch == klp_transition_patch );
416
415
}
417
416
418
417
static ssize_t force_store (struct kobject * kobj , struct kobj_attribute * attr ,
You can’t perform that action at this time.
0 commit comments