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:
parent
a7bb0b5abe
commit
070a76b153
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue