linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] f2fs-tools: show versions if exist
@ 2018-11-16  6:06 Jaegeuk Kim
  2018-11-16  6:06 ` [PATCH 2/2] f2fs-tools: create sparse file first before stat Jaegeuk Kim
  2018-11-17  2:27 ` [PATCH 1/2] f2fs-tools: show versions if exist Chao Yu
  0 siblings, 2 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2018-11-16  6:06 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim

If it's not defined, we need to skip to show the definition.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 include/f2fs_fs.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index cdf54e5..65cc8fd 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -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 {
-- 
2.19.0.605.g01d371f741-goog

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-17  2:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-16  6:06 [PATCH 1/2] f2fs-tools: show versions if exist Jaegeuk Kim
2018-11-16  6:06 ` [PATCH 2/2] f2fs-tools: create sparse file first before stat Jaegeuk Kim
2018-11-17  2:32   ` Chao Yu
2018-11-17  2:27 ` [PATCH 1/2] f2fs-tools: show versions if exist Chao Yu

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).