Whamcloud - gitweb
LU-12861 libcfs: provide an scnprintf and start using it
[fs/lustre-release.git] / lustre / osc / lproc_osc.c
index 2d15ebb..575e6bc 100644 (file)
@@ -702,9 +702,9 @@ static ssize_t grant_shrink_show(struct kobject *kobj, struct attribute *attr,
 
        LPROCFS_CLIMP_CHECK(obd);
        imp = obd->u.cli.cl_import;
-       len = snprintf(buf, PAGE_SIZE, "%d\n",
-                      !imp->imp_grant_shrink_disabled &&
-                      OCD_HAS_FLAG(&imp->imp_connect_data, GRANT_SHRINK));
+       len = scnprintf(buf, PAGE_SIZE, "%d\n",
+                       !imp->imp_grant_shrink_disabled &&
+                       OCD_HAS_FLAG(&imp->imp_connect_data, GRANT_SHRINK));
        LPROCFS_CLIMP_EXIT(obd);
 
        return len;