From b1f4c2a7d900bc3b259cbbe22b859dfe6d93aaa8 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 11 Sep 2018 18:27:52 +0200 Subject: [PATCH] improve debug message --- src/StreamEpics.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/StreamEpics.cc b/src/StreamEpics.cc index 696d45c..9df93d1 100644 --- a/src/StreamEpics.cc +++ b/src/StreamEpics.cc @@ -871,8 +871,11 @@ process() convert = OK; if (!startProtocol(record->proc==2 ? StreamCore::StartInit : StreamCore::StartNormal)) { - debug("Stream::process(%s): could not start %sprotocol, status=%d\n", - name(), record->proc==2 ? "@init " : "", status); + debug("Stream::process(%s): could not start %sprotocol, status=%s (%d)\n", + name(), record->proc==2 ? "@init " : "", + status >= 0 && status < ALARM_NSTATUS ? + epicsAlarmConditionStrings[status] : "ERROR", + status); (void) recGblSetSevr(record, status ? status : UDF_ALARM, INVALID_ALARM); record->proc = 0; return false;