chiark / gitweb /
fix parenthesis in pager.c (#5798)
[elogind.git] / src / test / test-sizeof.c
index 8f99a13772701ca6e3855c98542caf06aee36ade..36389b7710b4589e42ff79519cb65f17ed740cac 100644 (file)
@@ -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
 #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;
 }