mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-27 04:00:57 +00:00
f2fs-tools: show versions if exist
If it's not defined, we need to skip to show the definition. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
946d8f4583
commit
2367b0e9d2
@ -1326,7 +1326,11 @@ static inline int is_qf_ino(struct f2fs_super_block *sb, nid_t ino)
|
||||
|
||||
static inline void show_version(const char *prog)
|
||||
{
|
||||
#if defined(F2FS_TOOLS_VERSION) && defined(F2FS_TOOLS_DATE)
|
||||
MSG(0, "%s %s (%s)\n", prog, F2FS_TOOLS_VERSION, F2FS_TOOLS_DATE);
|
||||
#else
|
||||
MSG(0, "%s -- version not supported\n", prog);
|
||||
#endif
|
||||
}
|
||||
|
||||
struct feature {
|
||||
|
Loading…
Reference in New Issue
Block a user