X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Fnum2str.h;h=797288b5af891a616a082f161ac1fb32d6e663f9;hb=832a318683374475b4125cfdd5262c9c8cccb22a;hp=81358a1e3a4c734fd2c81f3afa73c8395c4d1f62;hpb=b94d4d75a2e474561dcda8ee852cd5e67dde884e;p=fio.git diff --git a/lib/num2str.h b/lib/num2str.h index 81358a1e..797288b5 100644 --- a/lib/num2str.h +++ b/lib/num2str.h @@ -3,13 +3,15 @@ #include -#define N2S_NONE 0 -#define N2S_BITPERSEC 1 /* match unit_base for bit rates */ -#define N2S_PERSEC 2 -#define N2S_BIT 3 -#define N2S_BYTE 4 -#define N2S_BYTEPERSEC 8 /* match unit_base for byte rates */ - -extern char *num2str(uint64_t, int, int, int, int); +enum n2s_unit { + N2S_NONE = 0, + N2S_PERSEC = 1, + N2S_BYTE = 2, + N2S_BIT = 3, + N2S_BYTEPERSEC = 4, + N2S_BITPERSEC = 5, +}; + +extern char *num2str(uint64_t, int, int, int, enum n2s_unit); #endif