mkfs.f2fs: fix wrong indentation and clean up
PATCH 1/1 mkfs.f2fs: fix wrong indentation and clean up
Signed-off-by Jaegeuk Kim <[email protected]>
--- lib/libf2fs.c | 2 +- mkfs/f2fs_format.c | 2 +- mkfs/f2fs_format_main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
lib/libf2fs.c +1 -1
@@ -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 ; } }
mkfs/f2fs_format.c +1 -1
@@ -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 );
mkfs/f2fs_format_main.c +2 -2
@@ -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 )
Signature · 8 lines
2.35.0.263.gb82422642f-goog _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel