diff --git a/lib/hooks/drop.c b/lib/hooks/drop.c index 2b873321d..0d4a8cbd2 100644 --- a/lib/hooks/drop.c +++ b/lib/hooks/drop.c @@ -66,7 +66,7 @@ static int drop_read(struct hook *h, struct sample *smps[], unsigned *cnt) cur = smps[i]; if (prev) { - dist = cur->sequence - (int32_t) prev->sequence; + dist = cur->sequence - (int64_t) prev->sequence; if (dist <= 0) { cur->flags |= SAMPLE_IS_REORDERED; diff --git a/lib/hooks/restart.c b/lib/hooks/restart.c index 3a127df93..1e8c73902 100644 --- a/lib/hooks/restart.c +++ b/lib/hooks/restart.c @@ -68,7 +68,7 @@ static int restart_read(struct hook *h, struct sample *smps[], unsigned *cnt) if (prev) { /* A wrap around of the sequence no should not be treated as a simulation restart */ if (cur->sequence == 0 && prev->sequence <= (int) (UINT32_MAX - 128)) { - warn("Simulation from node %s restarted (previous->seq=%" PRIu64 ", current->seq=%" PRIu64 ")", + warn("Simulation from node %s restarted (previous->sequence=%" PRIu64 ", current->sequence=%" PRIu64 ")", node_name(h->node), prev->sequence, cur->sequence); cur->flags |= SAMPLE_IS_FIRST;