From dfc208bd25288dd09d531f3e0665274bb9cf2998 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 25 Apr 2007 12:30:24 +0000 Subject: 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. --- src/einfo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/einfo.h') 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 -- cgit v1.2.3