Skip to content

Commit

Permalink
UBIFS: fix compiler warnings
Browse files Browse the repository at this point in the history
fs/ubifs/super.c: In function ‘ubifs_show_options’:
fs/ubifs/super.c:425: warning: format not a string literal and no format arguments
fs/ubifs/super.c: In function ‘mount_ubifs’:
fs/ubifs/super.c:1204: warning: format not a string literal and no format arguments
fs/ubifs/super.c: In function ‘ubifs_remount_rw’:
fs/ubifs/super.c:1557: warning: format not a string literal and no format arguments

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Hunter Adrian authored and Artem Bityutskiy committed Mar 20, 2009
1 parent f10770f commit fcabb34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ static int ubifs_show_options(struct seq_file *s, struct vfsmount *mnt)
seq_printf(s, ",no_chk_data_crc");

if (c->mount_opts.override_compr) {
seq_printf(s, ",compr=");
seq_printf(s, ubifs_compr_name(c->mount_opts.compr_type));
seq_printf(s, ",compr=%s",
ubifs_compr_name(c->mount_opts.compr_type));
}

return 0;
Expand Down Expand Up @@ -1204,7 +1204,7 @@ static int mount_ubifs(struct ubifs_info *c)
goto out_cbuf;

/* Create background thread */
c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
c->bgt = kthread_create(ubifs_bg_thread, c, "%s", c->bgt_name);
if (IS_ERR(c->bgt)) {
err = PTR_ERR(c->bgt);
c->bgt = NULL;
Expand Down Expand Up @@ -1561,7 +1561,7 @@ static int ubifs_remount_rw(struct ubifs_info *c)
ubifs_create_buds_lists(c);

/* Create background thread */
c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
c->bgt = kthread_create(ubifs_bg_thread, c, "%s", c->bgt_name);
if (IS_ERR(c->bgt)) {
err = PTR_ERR(c->bgt);
c->bgt = NULL;
Expand Down

0 comments on commit fcabb34

Please sign in to comment.