We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c53da5 commit a9156d7Copy full SHA for a9156d7
net/sunrpc/svc.c
@@ -109,15 +109,15 @@ param_get_pool_mode(char *buf, const struct kernel_param *kp)
109
switch (*ip)
110
{
111
case SVC_POOL_AUTO:
112
- return strlcpy(buf, "auto\n", 20);
+ return sysfs_emit(buf, "auto\n");
113
case SVC_POOL_GLOBAL:
114
- return strlcpy(buf, "global\n", 20);
+ return sysfs_emit(buf, "global\n");
115
case SVC_POOL_PERCPU:
116
- return strlcpy(buf, "percpu\n", 20);
+ return sysfs_emit(buf, "percpu\n");
117
case SVC_POOL_PERNODE:
118
- return strlcpy(buf, "pernode\n", 20);
+ return sysfs_emit(buf, "pernode\n");
119
default:
120
- return sprintf(buf, "%d\n", *ip);
+ return sysfs_emit(buf, "%d\n", *ip);
121
}
122
123
0 commit comments