diff options
| author | Paul Bütow <paul@uranus.lan.buetow.org> | 2018-11-10 18:35:34 +0000 |
|---|---|---|
| committer | Paul Bütow <paul@uranus.lan.buetow.org> | 2018-11-10 18:35:34 +0000 |
| commit | 7ac43985e49f94b3d78ba86a2210a310b567c272 (patch) | |
| tree | bde5e5ed76e5c86024597ee43474b8020ab6d231 | |
| parent | 3d751da08297c086fc30c60c8250a6184808e934 (diff) | |
expanding marcos
| -rw-r--r-- | ioriot/src/capture/capture.c | 3 | ||||
| -rw-r--r-- | ioriot/src/datas/btree.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ioriot/src/capture/capture.c b/ioriot/src/capture/capture.c index 5e8771d..249066d 100644 --- a/ioriot/src/capture/capture.c +++ b/ioriot/src/capture/capture.c @@ -88,8 +88,9 @@ status_e capture_run(options_s *opts) if ((fp = popen(staprun_command, "r")) == NULL) { Errno("Unable to invoke staprun command!"); } - while (fgets(buf, 1024, fp) != NULL) + while (fgets(buf, 1024, fp) != NULL) { Out("stapio: %s", buf); + } if (0 != pclose(fp)) { Error("Problems invoking staprun command!"); diff --git a/ioriot/src/datas/btree.c b/ioriot/src/datas/btree.c index b09ea1c..1fe356a 100644 --- a/ioriot/src/datas/btree.c +++ b/ioriot/src/datas/btree.c @@ -250,8 +250,9 @@ void btreelem_print_r(btreelem_s* e, int depth) if (!e) return; - for (int i = 0; i < depth; ++i) + for (int i = 0; i < depth; ++i) { Out(" "); + } Put("key:%ld data:%ld", e->key, (long) e->data); if (e->left) |
