From b16b4e9692d0770273612bb3489fbc5d57435226 Mon Sep 17 00:00:00 2001 From: zimoch <zimoch> Date: Mon, 16 Feb 2015 16:19:51 +0000 Subject: [PATCH] enable stdout redirection for libversionShow --- require.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/require.c b/require.c index d4b7fa7e..6aa1c44a 100644 --- a/require.c +++ b/require.c @@ -3,7 +3,7 @@ * * $Author: zimoch $ * $ID$ -* $Date: 2013/06/13 14:36:54 $ +* $Date: 2015/02/16 16:19:51 $ * * DISCLAIMER: Use at your own risc and so on. No warranty, no refund. */ @@ -16,6 +16,7 @@ #include <epicsVersion.h> #ifdef BASE_VERSION #define EPICS_3_13 +#define epicsStdoutPrintf printf int dbLoadDatabase(char *filename, char *path, char *substitutions); extern volatile int interruptAccept; #else @@ -24,6 +25,7 @@ extern volatile int interruptAccept; #include <dbAccess.h> epicsShareFunc int epicsShareAPI iocshCmd (const char *cmd); #include <epicsExit.h> +#include <epicsStdio.h> #include <epicsExport.h> #endif @@ -293,7 +295,7 @@ int libversionShow(const char* pattern) for (m = loadedModules; m; m=m->next) { if (pattern && !strstr(m->name, pattern)) return 0; - printf("%15s %s\n", m->name, m->version); + epicsStdoutPrintf("%15s %s\n", m->name, m->version); } return 0; } -- GitLab