* [f2fs-dev] [PATCH] mkfs.f2fs: fix wrong indentation and clean up
@ 2022-02-09 22:18 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2022-02-09 22:18 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
lib/libf2fs.c | 2 +-
mkfs/f2fs_format.c | 2 +-
mkfs/f2fs_format_main.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index 420dfdae56da..94fb91d46d28 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -952,7 +952,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;
}
}
diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
index 864d2851bd6a..dba0cec61e60 100644
--- a/mkfs/f2fs_format.c
+++ b/mkfs/f2fs_format.c
@@ -578,10 +578,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);
diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c
index 6efe35fff2d2..9e910e78d540 100644
--- a/mkfs/f2fs_format_main.c
+++ b/mkfs/f2fs_format_main.c
@@ -24,7 +24,7 @@
#include "config.h"
#ifdef HAVE_LIBBLKID
-# include <blkid.h>
+#include <blkid.h>
#endif
#include "f2fs_fs.h"
@@ -78,7 +78,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)
--
2.35.0.263.gb82422642f-goog
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-09 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09 22:18 [f2fs-dev] [PATCH] mkfs.f2fs: fix wrong indentation and clean up Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).