X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fbasic%2Fformats-util.h;fp=src%2Fbasic%2Fformats-util.h;h=39a185f59b4affffedc8044b556a4ab019edcd95;hb=d046fa2e88ab824e7dc3e32172328357779ab0f6;hp=9b4e8e98faacf301a125a092a2070861c75e0391;hpb=478418f9b414f837c9b30e9b1dcc5eaef079afd1;p=elogind.git diff --git a/src/basic/formats-util.h b/src/basic/formats-util.h index 9b4e8e98f..39a185f59 100644 --- a/src/basic/formats-util.h +++ b/src/basic/formats-util.h @@ -61,3 +61,19 @@ #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