From: Zbigniew Jędrzejewski-Szmek Date: Thu, 30 Mar 2017 01:31:21 +0000 (-0400) Subject: test-sizeof: do not link with libelogind-shared X-Git-Tag: chiark/234.4-1+devuan1.1+iwj1~170 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b713a0e0f40e002c6da41650dae2baf0dddae4ee test-sizeof: do not link with libelogind-shared This makes it much quicker to compile. --- diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index 8f99a1377..7c8eac824 100644 --- a/src/test/test-sizeof.c +++ b/src/test/test-sizeof.c @@ -17,7 +17,8 @@ along with systemd; If not, see . ***/ -#include "log.h" +#include + #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);