Skip to content

Commit d4eb08f

Browse files
Fabian Frederickdedekind
authored andcommitted
UBIFS: replace seq_printf by seq_puts
Fix checkpatch warnings: "WARNING: Prefer seq_puts to seq_printf" Andrew Morton wrote: " - puts is presumably faster - puts doesn't go rogue if you accidentally pass it a "%". - this patch actually made fs/ubifs/super.o 12 bytes smaller. Perhaps because seq_printf() is a varargs function, forcing the caller to pass args on the stack instead of in registers. " Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
1 parent 86b4c14 commit d4eb08f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎fs/ubifs/super.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -424,19 +424,19 @@ static int ubifs_show_options(struct seq_file *s, struct dentry *root)
424424
struct ubifs_info *c = root->d_sb->s_fs_info;
425425

426426
if (c->mount_opts.unmount_mode == 2)
427-
seq_printf(s, ",fast_unmount");
427+
seq_puts(s, ",fast_unmount");
428428
else if (c->mount_opts.unmount_mode == 1)
429-
seq_printf(s, ",norm_unmount");
429+
seq_puts(s, ",norm_unmount");
430430

431431
if (c->mount_opts.bulk_read == 2)
432-
seq_printf(s, ",bulk_read");
432+
seq_puts(s, ",bulk_read");
433433
else if (c->mount_opts.bulk_read == 1)
434-
seq_printf(s, ",no_bulk_read");
434+
seq_puts(s, ",no_bulk_read");
435435

436436
if (c->mount_opts.chk_data_crc == 2)
437-
seq_printf(s, ",chk_data_crc");
437+
seq_puts(s, ",chk_data_crc");
438438
else if (c->mount_opts.chk_data_crc == 1)
439-
seq_printf(s, ",no_chk_data_crc");
439+
seq_puts(s, ",no_chk_data_crc");
440440

441441
if (c->mount_opts.override_compr) {
442442
seq_printf(s, ",compr=%s",

0 commit comments

Comments
 (0)