diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-29 21:31:21 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-29 21:31:21 -0400 |
commit | 61d1a5a25c6f468aefe24f8033b779f140aab6dc (patch) | |
tree | 23f908c0cc258647ef987044800d1b95536b1592 /src | |
parent | ab883125704b9310dcdfcf7451a27e85609da76c (diff) |
test-sizeof: do not link with libsystemd-shared
This makes it much quicker to compile.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-sizeof.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index 8f99a13772..7c8eac8242 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); |