diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-03-30 09:58:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 09:58:05 +0200 |
commit | 7e65c6e501106ddc5f6eb015b7f4d499f567fc6f (patch) | |
tree | bcedc56412a7f27f8d71c19754c9066e17d6f035 /src | |
parent | ab883125704b9310dcdfcf7451a27e85609da76c (diff) | |
parent | 0c183e963d8cd1088594be693d0676aafba6a552 (diff) |
Merge pull request #5663 from keszybz/test-sizeof-more
Add a few `struct timespec`-related types to `test-sizeof`
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-sizeof.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index 8f99a13772..36389b7710 100644 --- a/src/test/test-sizeof.c +++ b/src/test/test-sizeof.c @@ -17,7 +17,8 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "log.h" +#include <stdio.h> + #include "time-util.h" /* Print information about various types. Useful when diagnosing @@ -26,10 +27,10 @@ #pragma GCC diagnostic ignored "-Wtype-limits" #define info(t) \ - log_info("%s → %zu bits%s", STRINGIFY(t), \ - sizeof(t)*CHAR_BIT, \ - strstr(STRINGIFY(t), "signed") ? "" : \ - ((t)-1 < (t)0 ? ", signed" : ", unsigned")); + printf("%s → %zu bits%s\n", STRINGIFY(t), \ + sizeof(t)*CHAR_BIT, \ + strstr(STRINGIFY(t), "signed") ? "" : \ + ((t)-1 < (t)0 ? ", signed" : ", unsigned")); int main(void) { info(char); @@ -39,6 +40,8 @@ int main(void) { info(unsigned); info(long unsigned); info(long long unsigned); + info(__syscall_ulong_t); + info(__syscall_slong_t); info(float); info(double); @@ -48,6 +51,7 @@ int main(void) { info(ssize_t); info(time_t); info(usec_t); + info(__time_t); return 0; } |