mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fixes for macOS
This commit is contained in:
parent
8cac844462
commit
d7cbbfa8df
2 changed files with 7 additions and 4 deletions
|
@ -645,16 +645,19 @@ char * node_name_long(struct node *n)
|
|||
if (node_type(n)->print) {
|
||||
struct node_type *vt = node_type(n);
|
||||
|
||||
strcatf(&n->_name_long, "%s: #in.signals=%zu, #in.hooks=%zu, in.vectorize=%d, #out.hooks=%zu, out.vectorize=%d, out.netem=%s",
|
||||
strcatf(&n->_name_long, "%s: #in.signals=%zu, #in.hooks=%zu, in.vectorize=%d, #out.hooks=%zu, out.vectorize=%d",
|
||||
node_name(n),
|
||||
vlist_length(&n->signals),
|
||||
vlist_length(&n->in.hooks), n->in.vectorize,
|
||||
vlist_length(&n->out.hooks), n->out.vectorize,
|
||||
n->tc_qdisc ? "yes" : "no"
|
||||
vlist_length(&n->out.hooks), n->out.vectorize
|
||||
);
|
||||
|
||||
#ifdef WITH_NETEM
|
||||
strcatf(&n->_name_long, ", out.netem=%s", n->tc_qdisc ? "yes" : "no");
|
||||
|
||||
if (n->tc_qdisc)
|
||||
strcatf(&n->_name_long, ", mark=%d", n->mark);
|
||||
#endif /* WITH_NETEM */
|
||||
|
||||
/* Append node-type specific details */
|
||||
char *name_long = vt->print(n);
|
||||
|
|
|
@ -287,7 +287,7 @@ enum signal_type sample_format(const struct sample *s, unsigned idx)
|
|||
|
||||
void sample_dump(struct sample *s)
|
||||
{
|
||||
debug(5, "Sample: sequence=%zu, length=%d, capacity=%d, flags=%#x, signals=%p, #signals=%zu, "
|
||||
debug(5, "Sample: sequence=%llu, length=%d, capacity=%d, flags=%#x, signals=%p, #signals=%zu, "
|
||||
"refcnt=%d, pool_off=%zd",
|
||||
s->sequence, s->length, s->capacity, s->flags, s->signals,
|
||||
s->signals ? vlist_length(s->signals) : 0, atomic_load(&s->refcnt), s->pool_off);
|
||||
|
|
Loading…
Add table
Reference in a new issue