]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/formats-util.h
core: set $JOURNAL_STREAM to the dev_t/ino_t of the journal stream of executed services
[thirdparty/systemd.git] / src / basic / formats-util.h
index 9b4e8e98faacf301a125a092a2070861c75e0391..39a185f59b4affffedc8044b556a4ab019edcd95 100644 (file)
 #else
 #  error Unknown rlim_t size
 #endif
+
+#if SIZEOF_DEV_T == 8
+#  define DEV_FMT "%" PRIu64
+#elif SIZEOF_DEV_T == 4
+#  define DEV_FMT "%" PRIu32
+#else
+#  error Unknown dev_t size
+#endif
+
+#if SIZEOF_INO_T == 8
+#  define INO_FMT "%" PRIu64
+#elif SIZEOF_INO_T == 4
+#  define INO_FMT "%" PRIu32
+#else
+#  error Unknown ino_t size
+#endif