mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
apply code style rules
This commit is contained in:
parent
790c85c066
commit
9ab3b80bf9
4 changed files with 7 additions and 6 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
/* Helper macros for virtual node type */
|
||||
#define node_type(n) ((n)->_vt->type)
|
||||
#define node_parse(n, cfg) ((n)->_vt->parse(n, cfg))
|
||||
#define node_parse(n, cfg) ((n)->_vt->parse(cfg, n))
|
||||
#define node_print(n) ((n)->_vt->print(n))
|
||||
|
||||
#define node_read(n, p, ps, f, c) ((n)->_vt->read(n, p, ps, f, c))
|
||||
|
@ -36,6 +36,7 @@
|
|||
|
||||
#define node_open(n) ((n)->_vt->open(n))
|
||||
#define node_close(n) ((n)->_vt->close(n))
|
||||
|
||||
#define node_read_single(n, m) ((n)->_vt->read(n, m, 1, 0, 1))
|
||||
#define node_write_single(n, m) ((n)->_vt->write(n, m, 1, 0, 1))
|
||||
|
||||
|
@ -56,15 +57,14 @@ extern struct list node_types;
|
|||
struct node_type {
|
||||
/** The unique name of this node. This must be allways the first member! */
|
||||
char *name;
|
||||
|
||||
/** Node type */
|
||||
|
||||
enum {
|
||||
BSD_SOCKET, /**< BSD Socket API */
|
||||
LOG_FILE, /**< File IO */
|
||||
OPAL_ASYNC, /**< OPAL-RT Asynchronous Process Api */
|
||||
GTFPGA, /**< Xilinx ML507 GTFPGA card */
|
||||
NGSI /**< NGSI 9/10 HTTP RESTful API (FIRWARE ContextBroker) */
|
||||
} type;
|
||||
} type; /**< Node type */
|
||||
|
||||
/** Parse node connection details.‚
|
||||
*
|
||||
|
|
|
@ -379,7 +379,7 @@ int hook_stats(struct path *p, struct hook *h, int when)
|
|||
if (p->received > 0)
|
||||
log_print(STATS, "%-40s|%10.2g|%10.2f|%10u|%10u|%10u|%10u|%10u|%10u|%10u|", buf,
|
||||
p->hist_owd.last, 1 / p->hist_gap_msg.last,
|
||||
p->sent, p->received, p->dropped, p->skipped, p->invalid, p->overrun, p->current->length
|
||||
p->sent, p->received, p->dropped, p->skipped, p->invalid, p->overrun, list_length(p->current)
|
||||
);
|
||||
else
|
||||
log_print(STATS, "%-40s|%10s|%10s|%10u|%10u|%10u|%10u|%10u|%10u|%10s|", buf, "", "",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "opal.h"
|
||||
#include "utils.h"
|
||||
|
||||
/** Global OPAL specific settings */
|
||||
static struct opal_global *og = NULL;
|
||||
|
||||
/** List of all opal nodes */
|
||||
|
|
|
@ -135,7 +135,7 @@ static void * path_run(void *arg)
|
|||
int path_start(struct path *p)
|
||||
{ INDENT
|
||||
char *buf = path_print(p);
|
||||
info("Starting path: %s (poolsize = %u, msgsize = %u, #hooks = %zu, rate = %.1f)",
|
||||
info("Starting path: %s (poolsize=%u, msgsize=%u, #hooks=%zu, rate=%.1f)",
|
||||
buf, p->poolsize, p->msgsize, list_length(&p->hooks), p->rate);
|
||||
free(buf);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue