]> granicus.if.org Git - strace/blobdiff - print_timex.c
Introduce HAVE_STRUCT_TCB_EXT_ARG macro
[strace] / print_timex.c
index 10d89403169b3b7dd7e0ba445c084fc6815f4afd..ad6a7114c1a91f0c1f491426ab5f3abfcf23b15d 100644 (file)
@@ -37,12 +37,10 @@ typedef struct timex struct_timex;
 
 #include MPERS_DEFS
 
-#ifndef IN_MPERS
-# include "xlat/adjtimex_modes.h"
-# include "xlat/adjtimex_status.h"
-#endif
+#include "xlat/adjtimex_modes.h"
+#include "xlat/adjtimex_status.h"
 
-MPERS_PRINTER_DECL(int, print_timex)(struct tcb *tcp, const long addr)
+MPERS_PRINTER_DECL(int, print_timexstruct tcb *tcp, const long addr)
 {
        struct_timex tx;
 
@@ -66,6 +64,9 @@ MPERS_PRINTER_DECL(int, print_timex)(struct tcb *tcp, const long addr)
                tx.shift, (intmax_t) tx.stabil, (intmax_t) tx.jitcnt);
        tprintf(", calcnt=%jd, errcnt=%jd, stbcnt=%jd",
                (intmax_t) tx.calcnt, (intmax_t) tx.errcnt, (intmax_t) tx.stbcnt);
+#ifdef HAVE_STRUCT_TIMEX_TAI
+       tprintf(", tai=%d", tx.tai);
+#endif
        tprints("}");
        return 0;
 }