From 7ac43985e49f94b3d78ba86a2210a310b567c272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sat, 10 Nov 2018 18:35:34 +0000 Subject: expanding marcos --- ioriot/src/capture/capture.c | 3 ++- 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) -- cgit v1.2.3