summaryrefslogtreecommitdiffabout
path: root/t/rt.c
Side-by-side diff
Diffstat (limited to 't/rt.c') (more/less context) (ignore whitespace changes)
-rw-r--r--t/rt.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/t/rt.c b/t/rt.c
index 12a3232..e5c1bbb 100644
--- a/t/rt.c
+++ b/t/rt.c
@@ -93,5 +93,8 @@ linemon(const char *ptr, size_t len, void *data)
struct linemon_closure *clos = data;
-
- if (!clos->cont)
- fprintf(stdout, "[%s]: ", clos->prefix);
+
+ if (!clos->cont) {
+ printf("%s:", clos->prefix);
+ if (!(len == 1 && ptr[0] == '\n'))
+ putchar(' ');
+ }
fwrite(ptr, len, 1, stdout);
@@ -118,3 +121,6 @@ nl(struct runcap *rc, int stream)
buf[res-1] = 0;
- printf("%*zu: %s\n", width, n, buf);
+ printf("%*zu:", width, n);
+ if (buf[0])
+ printf(" %s", buf);
+ putchar('\n');
n++;

Return to:

Send suggestions and report system problems to the System administrator.