Whamcloud - gitweb
LU-12861 libcfs: provide an scnprintf and start using it
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index 0ac9a7a..45f7678 100644 (file)
@@ -4501,8 +4501,8 @@ int mgs_list_logs(const struct lu_env *env, struct mgs_device *mgs,
                list_del_init(&dirent->mde_list);
                suffix = strrchr(dirent->mde_name, '-');
                if (suffix != NULL) {
-                       l = snprintf(out, remains, "config_log: %s\n",
-                                    dirent->mde_name);
+                       l = scnprintf(out, remains, "config_log: %s\n",
+                                     dirent->mde_name);
                        out += l;
                        remains -= l;
                }