]> granicus.if.org Git - strace/commitdiff
time.c: remove obsolete code from adjtimex parser
authorElvira Khabirova <lineprinter0@gmail.com>
Thu, 30 Jul 2015 20:44:12 +0000 (23:44 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 16:52:43 +0000 (16:52 +0000)
Linux versions 1.3.28 and below are not supported.

* time.c (tprint_timex) [LINUX_VERSION_CODE < 66332]: Remove.

time.c

diff --git a/time.c b/time.c
index a373641fab8b55caa3d8afa46302db7de9004921..aa065f249eb8ca3f2d0c5b3ef3289d975dfa7de0 100644 (file)
--- a/time.c
+++ b/time.c
@@ -396,16 +396,6 @@ tprint_timex(struct tcb *tcp, long addr)
        if (umove_or_printaddr(tcp, addr, &tx))
                return -1;
 
-#if LINUX_VERSION_CODE < 66332
-       tprintf("{mode=%d, offset=%ld, frequency=%ld, ",
-               tx.mode, tx.offset, tx.frequency);
-       tprintf("maxerror=%ld, esterror=%lu, status=%u, ",
-               tx.maxerror, tx.esterror, tx.status);
-       tprintf("time_constant=%ld, precision=%lu, ",
-               tx.time_constant, tx.precision);
-       tprintf("tolerance=%ld, time=", tx.tolerance);
-       tprint_timeval(tcp, &tx.time);
-#else
        tprints("{modes=");
        printflags(adjtimex_modes, tx.modes, "ADJ_???");
        tprintf(", offset=%jd, freq=%jd, maxerror=%ju, esterror=%ju, status=",
@@ -422,7 +412,6 @@ tprint_timex(struct tcb *tcp, 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);
-#endif
        tprints("}");
        return 0;
 }