fs: create and use seq_show_option for escaping
[deliverable/linux.git] / fs / ocfs2 / super.c
index 3a9a1af39ad7a05cefbfd712e8a524cc9f58498e..2de4c8a9340c267a16381faacbd0ce66c18d123f 100644 (file)
@@ -1563,8 +1563,8 @@ static int ocfs2_show_options(struct seq_file *s, struct dentry *root)
                seq_printf(s, ",localflocks,");
 
        if (osb->osb_cluster_stack[0])
-               seq_printf(s, ",cluster_stack=%.*s", OCFS2_STACK_LABEL_LEN,
-                          osb->osb_cluster_stack);
+               seq_show_option_n(s, "cluster_stack", osb->osb_cluster_stack,
+                                 OCFS2_STACK_LABEL_LEN);
        if (opts & OCFS2_MOUNT_USRQUOTA)
                seq_printf(s, ",usrquota");
        if (opts & OCFS2_MOUNT_GRPQUOTA)
This page took 0.025604 seconds and 5 git commands to generate.