From fa745ae0c83022dc205eff917ac2e51d290c49e2 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Wed, 28 Jul 2004 18:10:47 +0000 Subject: [PATCH] Make debugging work with iocsh --- motorApp/MotorSrc/motordrvCom.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/motorApp/MotorSrc/motordrvCom.cc b/motorApp/MotorSrc/motordrvCom.cc index eb959c04..a00a3132 100644 --- a/motorApp/MotorSrc/motordrvCom.cc +++ b/motorApp/MotorSrc/motordrvCom.cc @@ -3,9 +3,9 @@ FILENAME... motordrvCom.cc USAGE... This file contains driver functions that are common to all motor record driver modules. -Version: $Revision: 1.9 $ -Modified By: $Author: sluiter $ -Last Modified: $Date: 2004-02-11 22:24:15 $ +Version: $Revision: 1.10 $ +Modified By: $Author: rivers $ +Last Modified: $Date: 2004-07-28 18:10:47 $ */ /* @@ -50,19 +50,17 @@ Last Modified: $Date: 2004-02-11 22:24:15 $ #include #include #include +#include #include "motor.h" #include "motordrvCom.h" /*----------------debugging-----------------*/ +volatile int motordrvComdebug = 0; +epicsExportAddress(int, motordrvComdebug); #ifdef __GNUG__ - #ifdef DEBUG - volatile int motordrvComdebug = 0; - #define Debug(l, f, args...) {if (l <= motordrvComdebug) printf(f, ## args);} - #else - #define Debug(l, f, args...) - #endif + #define Debug(l, f, args...) {if (l <= motordrvComdebug) printf(f, ## args);} #else #define Debug() #endif