aboutsummaryrefslogtreecommitdiff
path: root/src/einfo.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-25 12:30:24 +0000
committerRoy Marples <roy@marples.name>2007-04-25 12:30:24 +0000
commitdfc208bd25288dd09d531f3e0665274bb9cf2998 (patch)
treee3253e1b287969e4abf72441894b53f17bbdc49e /src/einfo.h
parentae32cbdd4b863fbe707981f85c19e04b1faecf6c (diff)
We now have an alternative to buffering stdout and stderr.
RC_PREFIX="yes" will put the service name as a prefix to all output made by the service. Thanks to Ciaran McCreesh for the idea.
Diffstat (limited to 'src/einfo.h')
-rw-r--r--src/einfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/einfo.h b/src/einfo.h
index e1953772..a2719a22 100644
--- a/src/einfo.h
+++ b/src/einfo.h
@@ -64,6 +64,9 @@ int ewendv (int retval, const char *fmt, ...) EINFO_PRINTF (2, 3);
void eindentv (void);
void eoutdentv (void);
+/* Pointer to a string that is always prefixed to einfo/ewarn/error */
+void eprefix (const char *prefix);
+
/* Handy utils to buffer stdout and stderr so our output is always
* sane when forking around.
* Don't depend on these being here though as we may take a different