Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>
---
 clock.c | 14 +++++++-------
 port.c  |  6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/clock.c b/clock.c
index c99812b..c3baa87 100644
--- a/clock.c
+++ b/clock.c
@@ -997,20 +997,20 @@ void clock_path_delay(struct clock *c, struct timespec 
req, struct timestamp rx,
        pd = tmv_div(pd, 2);
 
        if (pd < 0) {
-               pr_debug("negative path delay %10lld", pd);
+               pr_debug("negative path delay %10" PRId64, pd);
                pr_debug("path_delay = (t2 - t3) + (t4 - t1) - (c1 + c2 + c3)");
-               pr_debug("t2 - t3 = %+10lld", t2 - t3);
-               pr_debug("t4 - t1 = %+10lld", t4 - t1);
-               pr_debug("c1 %10lld", c1);
-               pr_debug("c2 %10lld", c2);
-               pr_debug("c3 %10lld", c3);
+               pr_debug("t2 - t3 = %+10" PRId64, t2 - t3);
+               pr_debug("t4 - t1 = %+10" PRId64, t4 - t1);
+               pr_debug("c1 %10" PRId64, c1);
+               pr_debug("c2 %10" PRId64, c2);
+               pr_debug("c3 %10" PRId64, c3);
        }
 
        c->path_delay = filter_sample(c->delay_filter, pd);
 
        c->cur.meanPathDelay = tmv_to_TimeInterval(c->path_delay);
 
-       pr_debug("path delay    %10lld %10lld", c->path_delay, pd);
+       pr_debug("path delay    %10" PRId64 " %10" PRId64, c->path_delay, pd);
 
        if (c->stats.delay)
                stats_add_value(c->stats.delay, tmv_to_nanoseconds(pd));
diff --git a/port.c b/port.c
index 81556ae..523970e 100644
--- a/port.c
+++ b/port.c
@@ -468,8 +468,8 @@ static int port_capable(struct port *p)
 
        if (tmv_to_nanoseconds(p->peer_delay) > p->neighborPropDelayThresh) {
                if (p->asCapable)
-                       pr_debug("port %hu: peer_delay (%lld) > 
neighborPropDelayThresh "
-                               "(%lld), resetting asCapable", portnum(p),
+                       pr_debug("port %hu: peer_delay (%" PRId64 ") > 
neighborPropDelayThresh "
+                               "(%" PRId32 "), resetting asCapable", 
portnum(p),
                                tmv_to_nanoseconds(p->peer_delay),
                                p->neighborPropDelayThresh);
                goto not_capable;
@@ -1791,7 +1791,7 @@ calc:
 
        p->peerMeanPathDelay = tmv_to_TimeInterval(p->peer_delay);
 
-       pr_debug("pdelay %hu   %10lld %10lld", portnum(p), p->peer_delay, pd);
+       pr_debug("pdelay %hu   %10" PRId64 "%10" PRId64, portnum(p), 
p->peer_delay, pd);
 
        if (p->pod.follow_up_info)
                port_nrate_calculate(p, t3, t4, tmv_add(c1, c2));
-- 
1.8.4.2


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to