mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
shm node: add ‚exec‘ setting to shmem_print()
This commit is contained in:
parent
d4ddad603b
commit
ea6556bc8d
1 changed files with 9 additions and 0 deletions
|
@ -211,6 +211,15 @@ char * shmem_print(struct node *n)
|
|||
|
||||
strcatf(&buf, "name=%s, insize=%d, outsize=%d, sample_size=%d", shm->name, shm->insize, shm->outsize, shm->sample_size);
|
||||
|
||||
if (shm->exec) {
|
||||
strcatf(&buf, ", exec='");
|
||||
|
||||
for (int i = 0; shm->exec[i]; i++)
|
||||
strcatf(&buf, shm->exec[i+1] ? "%s " : "%s", shm->exec[i]);
|
||||
|
||||
strcatf(&buf, "'");
|
||||
}
|
||||
|
||||
return buf;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue