mkfs.f2fs: fix wrong indentation and clean up

commit 97ce230ab6074acfe2717ed99a7196d7a6502f16
category: bugfix
issue: #I6VAS0
CVE: NA

Signed-off-by: DongSenhao <dongsenhao2@huawei.com>
---------------------------------------

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
Jaegeuk Kim 2022-02-09 13:07:49 -08:00 committed by dongsenhao
parent 55c68bc9b9
commit 01d4637451
3 changed files with 4 additions and 4 deletions

View File

@ -954,7 +954,7 @@ int get_device_info(int i)
c.kd = open("/proc/version", O_RDONLY);
#endif
if (c.kd < 0) {
MSG(0, "\tInfo: No support kernel version!\n");
MSG(0, "Info: not exist /proc/version!\n");
c.kd = -2;
}
}

View File

@ -580,10 +580,10 @@ static int f2fs_prepare_super_block(void)
if (c.kd >= 0) {
dev_read_version(c.version, 0, VERSION_LEN);
get_kernel_version(c.version);
MSG(0, "Info: format version with\n \"%s\"\n", c.version);
} else {
get_kernel_uname_version(c.version);
}
MSG(0, "Info: format version with\n \"%s\"\n", c.version);
memcpy(sb->version, c.version, VERSION_LEN);
memcpy(sb->init_version, c.version, VERSION_LEN);

View File

@ -27,7 +27,7 @@
#include "config.h"
#ifdef HAVE_LIBBLKID
# include <blkid.h>
#include <blkid.h>
#endif
#include "f2fs_fs.h"
@ -81,7 +81,7 @@ static void mkfs_usage()
static void f2fs_show_info()
{
MSG(0, "\n\tF2FS-tools: mkfs.f2fs Ver: %s (%s)\n\n",
MSG(0, "\n F2FS-tools: mkfs.f2fs Ver: %s (%s)\n\n",
F2FS_TOOLS_VERSION,
F2FS_TOOLS_DATE);
if (c.heap == 0)