mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added debug facilities
This commit is contained in:
parent
2da610f708
commit
2962c2902e
1 changed files with 3 additions and 3 deletions
6
lib/if.c
6
lib/if.c
|
@ -29,7 +29,7 @@ struct interface * if_create(struct rtnl_link *link)
|
|||
|
||||
i->nl_link = link;
|
||||
|
||||
debug(3, "Created interface '%s'", rtnl_link_get_name(i->nl_link));
|
||||
debug(DBG_SOCKET | 3, "Created interface '%s'", rtnl_link_get_name(i->nl_link));
|
||||
|
||||
int n = if_get_irqs(i);
|
||||
if (n > 0)
|
||||
|
@ -92,7 +92,7 @@ int if_start(struct interface *i, int affinity)
|
|||
error("Failed to setup FW mark classifier: %s", nl_geterror(ret));
|
||||
|
||||
char *buf = tc_print(s->tc_qdisc);
|
||||
debug(5, "Starting network emulation on interface '%s' for FW mark %u: %s",
|
||||
debug(DBG_SOCKET | 5, "Starting network emulation on interface '%s' for FW mark %u: %s",
|
||||
rtnl_link_get_name(i->nl_link), s->mark, buf);
|
||||
free(buf);
|
||||
|
||||
|
@ -193,7 +193,7 @@ int if_set_affinity(struct interface *i, int affinity)
|
|||
error("Failed to set affinity for IRQ %u", i->irqs[n]);
|
||||
|
||||
fclose(file);
|
||||
debug(5, "Set affinity of IRQ %u for interface '%s' to %#x", i->irqs[n], rtnl_link_get_name(i->nl_link), affinity);
|
||||
debug(DBG_SOCKET | 5, "Set affinity of IRQ %u for interface '%s' to %#x", i->irqs[n], rtnl_link_get_name(i->nl_link), affinity);
|
||||
}
|
||||
else
|
||||
error("Failed to set affinity for interface '%s'", rtnl_link_get_name(i->nl_link));
|
||||
|
|
Loading…
Add table
Reference in a new issue