1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

shmem: improve log messages

This commit is contained in:
Steffen Vogel 2018-05-23 14:58:45 +02:00
parent a7bb0b5abe
commit 070a76b153

View file

@ -63,7 +63,7 @@ int shmem_parse(struct node *n, json_t *cfg)
if (json_exec) {
if (!json_is_array(json_exec))
error("Setting 'exec' of node %s must be a JSON array of strings", node_name(n));
error("Setting 'exec' of node %s must be an array of strings", node_name(n));
shm->exec = alloc(sizeof(char *) * (json_array_size(json_exec) + 1));
@ -72,7 +72,7 @@ int shmem_parse(struct node *n, json_t *cfg)
json_array_foreach(json_exec, index, json_val) {
val = json_string_value(json_exec);
if (!val)
error("Setting 'exec' of node %s must be a JSON array of strings", node_name(n));
error("Setting 'exec' of node %s must be an array of strings", node_name(n));
shm->exec[index] = strdup(val);
}