fsck: use printf for message, not bb_info_msg

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-03-30 16:30:24 +02:00
parent 3b757f0798
commit c418f48d8d

View File

@ -602,7 +602,7 @@ static void fsck_device(struct fs_info *fs /*, int interactive */)
if (strcmp(fs->type, "auto") != 0) { if (strcmp(fs->type, "auto") != 0) {
type = fs->type; type = fs->type;
if (G.verbose > 2) if (G.verbose > 2)
bb_info_msg("using filesystem type '%s' %s", printf("using filesystem type '%s' %s\n",
type, "from fstab"); type, "from fstab");
} else if (G.fstype } else if (G.fstype
&& (G.fstype[0] != 'n' || G.fstype[1] != 'o') /* != "no" */ && (G.fstype[0] != 'n' || G.fstype[1] != 'o') /* != "no" */
@ -612,12 +612,12 @@ static void fsck_device(struct fs_info *fs /*, int interactive */)
) { ) {
type = G.fstype; type = G.fstype;
if (G.verbose > 2) if (G.verbose > 2)
bb_info_msg("using filesystem type '%s' %s", printf("using filesystem type '%s' %s\n",
type, "from -t"); type, "from -t");
} else { } else {
type = "auto"; type = "auto";
if (G.verbose > 2) if (G.verbose > 2)
bb_info_msg("using filesystem type '%s' %s", printf("using filesystem type '%s' %s\n",
type, "(default)"); type, "(default)");
} }