Index: CAMRoutineApp/src/CAMRoutine.dbd =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/CAMRoutineApp/src/CAMRoutine.dbd,v retrieving revision 1.3 diff -r1.3 CAMRoutine.dbd 5a6 > variable(CAM_DRV_DEBUG) Index: CAMRoutineApp/src/camgo.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/CAMRoutineApp/src/camgo.c,v retrieving revision 1.8 diff -r1.8 camgo.c 30a31,32 > 09-Dec-2013, Sonya Hoobler (SONYA) > Add flag to disable error messages; add check of flag to print statements 71a74,75 > int CAM_DRV_DEBUG = 0; /* Global flag to disable/enable messages; default is to disable */ > 345c349 < errlogSevPrintf (errlogMinor, "CAMGO - timeout waiting for interrupt %x\n",ess); --- > if (CAM_DRV_DEBUG) errlogSevPrintf (errlogMinor, "CAMGO - timeout waiting for interrupt %x\n",ess); 510,553c514,560 < switch (issx) < { < case CAM_NO_Q: < errlogSevPrintf (errlogMinor, < "Camgo: no Q response C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < break; < case CAM_NO_X: < errlogSevPrintf (errlogMinor, < "Camgo: no X response C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < break; < case CAM_NO_EOSTRM: < errlogSevPrintf (errlogMinor, < "Camgo: failed to terminate on end of scan C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < break; < case CAM_NO_WCTERM: < errlogSevPrintf (errlogMinor, < "Camgo: failed to exhaust word count C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < break; < case CAM_CRATE_TO: < if (!MBCD_MODE) < { < errlogSevPrintf (errlogMinor, < "Camgo: crate timeout C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < } < break; < case CAM_SOFT_TO: < if (!MBCD_MODE) < { < errlogSevPrintf (errlogMinor, < "Camgo: software timeout. No PSCD response C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < } < break; < case CAM_MBCD_NFG: < errlogSevPrintf (errlogMinor, < "Camgo: PSCD failure C %x N %x A %x F %x Stat=%x\n", < parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); < break; < } --- > if (CAM_DRV_DEBUG) > { > switch (issx) > { > case CAM_NO_Q: > errlogSevPrintf (errlogMinor, > "Camgo: no Q response C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > break; > case CAM_NO_X: > errlogSevPrintf (errlogMinor, > "Camgo: no X response C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > break; > case CAM_NO_EOSTRM: > errlogSevPrintf (errlogMinor, > "Camgo: failed to terminate on end of scan C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > break; > case CAM_NO_WCTERM: > errlogSevPrintf (errlogMinor, > "Camgo: failed to exhaust word count C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > break; > case CAM_CRATE_TO: > if (!MBCD_MODE) > { > errlogSevPrintf (errlogMinor, > "Camgo: crate timeout C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > } > break; > case CAM_SOFT_TO: > if (!MBCD_MODE) > { > errlogSevPrintf (errlogMinor, > "Camgo: software timeout. No PSCD response C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > } > break; > case CAM_MBCD_NFG: > errlogSevPrintf (errlogMinor, > "Camgo: PSCD failure C %x N %x A %x F %x Stat=%x\n", > parmdw[0], parmdw[1], parmdw[2], parmdw[3], mbcd_stat); > break; > } > } Index: DACApp/src/devDAC.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/DACApp/src/devDAC.c,v retrieving revision 1.4 diff -r1.4 devDAC.c 115c115 < errlogPrintf("Record [%s] error %s!\n", pai->name, cammsg(pRequest->errCode)); --- > if(DAC_DRV_DEBUG) printf("Record [%s] error %s!\n", pai->name, cammsg(pRequest->errCode)); 226c226 < errlogPrintf("Record [%s] error %s!\n", pao->name, cammsg(pRequest->errCode)); --- > if(DAC_DRV_DEBUG) printf("Record [%s] error %s!\n", pao->name, cammsg(pRequest->errCode)); 304c304 < errlogPrintf("Record [%s] error %s!\n", pli->name, cammsg(pRequest->errCode)); --- > if(DAC_DRV_DEBUG) printf("Record [%s] error %s!\n", pli->name, cammsg(pRequest->errCode)); Index: DACApp/src/drvDAC.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/DACApp/src/drvDAC.c,v retrieving revision 1.5 diff -r1.5 drvDAC.c 119c119 < errlogPrintf ("camio error %s for DAC F16 write.\n", cammsg(iss)); --- > if(DAC_DRV_DEBUG) errlogPrintf ("camio error %s for DAC F16 write.\n", cammsg(iss)); 164c164 < errlogPrintf ("camio error %s for DAC F0 read\n", cammsg(iss)); --- > if(DAC_DRV_DEBUG) errlogPrintf ("camio error %s for DAC F0 read\n", cammsg(iss)); 215c215 < errlogPrintf ("camio error %s for DAC F0 read\n", cammsg(iss)); --- > if(DAC_DRV_DEBUG) errlogPrintf ("camio error %s for DAC F0 read\n", cammsg(iss)); Index: IDIMApp/src/devIDIM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/IDIMApp/src/devIDIM.c,v retrieving revision 1.3 diff -r1.3 devIDIM.c 101c101 < errlogPrintf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); --- > if(IDIM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); Index: IDIMApp/src/drvIDIM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/IDIMApp/src/drvIDIM.c,v retrieving revision 1.4 diff -r1.4 drvIDIM.c 121c121 < errlogPrintf ("camio error %s for IDIM F%dA%d\n", cammsg(iss), pIDIMRequest->f, pIDIMRequest->a); --- > if(IDIM_DRV_DEBUG) printf ("camio error %s for IDIM F%dA%d\n", cammsg(iss), pIDIMRequest->f, pIDIMRequest->a); 146c146 < errlogPrintf("camgo error %s\n",cammsg(iss)); --- > if(IDIM_DRV_DEBUG) printf("camgo error %s\n",cammsg(iss)); Index: IDOMApp/src/devIDOM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/IDOMApp/src/devIDOM.c,v retrieving revision 1.5 diff -r1.5 devIDOM.c 112c112 < errlogPrintf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); --- > if(IDOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); 185c185 < errlogPrintf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); --- > if(IDOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); 282c282 < errlogPrintf("Record [%s] error %s!\n", pmbbod->name, cammsg(pRequest->errCode)); --- > if(IDOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbod->name, cammsg(pRequest->errCode)); Index: IDOMApp/src/drvIDOM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/IDOMApp/src/drvIDOM.c,v retrieving revision 1.5 diff -r1.5 drvIDOM.c 126c126 < errlogPrintf ("camio error %s for IDOM F%dA%d write.\n", --- > if(IDOM_DRV_DEBUG) printf ("camio error %s for IDOM F%dA%d write.\n", 177c177 < errlogPrintf ("camio error %s for IDOM F%dA%d write.\n", --- > if(IDOM_DRV_DEBUG) printf ("camio error %s for IDOM F%dA%d write.\n", 229c229 < errlogPrintf ("camio error %s for IDOM F%dA%d\n", cammsg(iss), pIDOMRequest->f, pIDOMRequest->a); --- > if(IDOM_DRV_DEBUG) printf ("camio error %s for IDOM F%dA%d\n", cammsg(iss), pIDOMRequest->f, pIDOMRequest->a); Index: LDIMApp/src/devLDIM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/LDIMApp/src/devLDIM.c,v retrieving revision 1.2 diff -r1.2 devLDIM.c 101c101 < errlogPrintf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); --- > if(LDIM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); Index: LDIMApp/src/drvLDIM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/LDIMApp/src/drvLDIM.c,v retrieving revision 1.3 diff -r1.3 drvLDIM.c 123c123 < errlogPrintf ("camio error %s for LDIM F%dA%d\n", cammsg(iss), pLDIMRequest->f, pLDIMRequest->a); --- > if(LDIM_DRV_DEBUG) printf ("camio error %s for LDIM F%dA%d\n", cammsg(iss), pLDIMRequest->f, pLDIMRequest->a); 148c148 < errlogPrintf("camgo error %s\n",cammsg(iss)); --- > if(LDIM_DRV_DEBUG) printf("camgo error %s\n",cammsg(iss)); Index: PDUApp/src/devPDUII.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PDUApp/src/devPDUII.c,v retrieving revision 1.7 diff -r1.7 devPDUII.c 145c145 < errlogPrintf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); 219c219 < errlogPrintf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); 294c294 < errlogPrintf("Record [%s] error %s!\n", pmbbi->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbi->name, cammsg(pRequest->errCode)); 374c374 < errlogPrintf("Record [%s] error %s!\n", pmbbo->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbo->name, cammsg(pRequest->errCode)); 448c448 < errlogPrintf("Record [%s] error %s!\n", pli->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", pli->name, cammsg(pRequest->errCode)); 535c535 < errlogPrintf("Record [%s] error %s!\n", plo->name, cammsg(pRequest->errCode)); --- > if(PDUII_DRV_DEBUG) printf("Record [%s] error %s!\n", plo->name, cammsg(pRequest->errCode)); Index: PDUApp/src/drvPDUII.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PDUApp/src/drvPDUII.c,v retrieving revision 1.17 diff -r1.17 drvPDUII.c 268c268 < errlogPrintf("drvPDUII camgo error %s reading status.\n",cammsg(iss)); --- > if(PDUII_DRV_DEBUG) printf("drvPDUII camgo error %s reading status.\n",cammsg(iss)); 357c357 < errlogPrintf("drvPDUII camgo error %s reading mode.\n",cammsg(iss)); --- > if(PDUII_DRV_DEBUG) printf("drvPDUII camgo error %s reading mode.\n",cammsg(iss)); 367c367 < errlogPrintf("drvPDUII failed mode read (rd1=0x%4.4hx rd2=0x%4.4hx) PDU n=%hd chan %hd %s\n", --- > if(PDUII_DRV_DEBUG) printf("drvPDUII failed mode read (rd1=0x%4.4hx rd2=0x%4.4hx) PDU n=%hd chan %hd %s\n", 478c478 < errlogPrintf("drvPDUII camgo error %s setting mode\n",cammsg(iss)); --- > if(PDUII_DRV_DEBUG) printf("drvPDUII camgo error %s setting mode\n",cammsg(iss)); 603c603 < errlogPrintf("drvPDUII camgo error %s reading the PTT\n",cammsg(iss)); --- > if(PDUII_DRV_DEBUG) errlogPrintf("drvPDUII camgo error %s reading the PTT\n",cammsg(iss)); 613c613 < errlogPrintf("drvPDUII failed pttp read (rd1=0x%8.8hx rd2=0x%8.8hx) PDU n=%.2hd chan %.2hd %s\n", --- > if(PDUII_DRV_DEBUG) printf("drvPDUII failed pttp read (rd1=0x%8.8hx rd2=0x%8.8hx) PDU n=%.2hd chan %.2hd %s\n", Index: PIOPApp/src/PIOP.dbd =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PIOPApp/src/PIOP.dbd,v retrieving revision 1.7 diff -r1.7 PIOP.dbd 19c19,20 < #variable(myVariable) --- > variable(PIOP_DRV_DEBUG) > Index: PIOPApp/src/devPIOP.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PIOPApp/src/devPIOP.c,v retrieving revision 1.15 diff -r1.15 devPIOP.c 21a22,23 > extern int PIOP_DRV_DEBUG; > 233,234c235 < errlogPrintf("Record [%s] error %s!\n", sor_p->name, < cammsg(pvt_p->status)); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] error %s!\n", sor_p->name, cammsg(pvt_p->status)); 360c361 < errlogPrintf("Record [%s] error %s!\n", wfr_p->name, cammsg(pvt_p->status)); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] error %s!\n", wfr_p->name, cammsg(pvt_p->status)); 433c434 < errlogPrintf("Record [%s] SBI STATUS can't send msg to thread", mbir_p->name); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] SBI STATUS can't send msg to thread", mbir_p->name); 450c451 < errlogPrintf("Record [%s] error %s!\n", mbir_p->name,cammsg(pvt_p->status)); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] error %s!\n", mbir_p->name,cammsg(pvt_p->status)); 517c518 < errlogPrintf("Record [%s] PIOP MSG can't send msg to thread", bir_p->name); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] PIOP MSG can't send msg to thread", bir_p->name); 532c533 < errlogPrintf("Record [%s] error %s!\n", bir_p->name, cammsg(pvt_p->status)); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] error %s!\n", bir_p->name, cammsg(pvt_p->status)); 705c706 < errlogPrintf("Record [%s] can't send msg to SBI thread", lor_p->name); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] can't send msg to SBI thread", lor_p->name); 720c721 < errlogPrintf("Record [%s] error %s!\n", lor_p->name, cammsg(pvt_p->status)); --- > if (PIOP_DRV_DEBUG) printf("Record [%s] error %s!\n", lor_p->name, cammsg(pvt_p->status)); Index: PIOPApp/src/drvPIOP.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PIOPApp/src/drvPIOP.c,v retrieving revision 1.13 diff -r1.13 drvPIOP.c 17a18,19 > int PIOP_DRV_DEBUG = 0; > Index: PPOMApp/src/devPPOM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PPOMApp/src/devPPOM.c,v retrieving revision 1.2 diff -r1.2 devPPOM.c 97c97 < errlogPrintf("Send Message to PPOM Operation Thread Error [%s]", pbo->name); --- > if(PPOM_DRV_DEBUG) printf("Send Message to PPOM Operation Thread Error [%s]", pbo->name); 112c112 < errlogPrintf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); --- > if(PPOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); 170c170 < errlogPrintf("Send Message to PPOM Operation Thread Error [%s]", pmbbid->name); --- > if(PPOM_DRV_DEBUG) printf("Send Message to PPOM Operation Thread Error [%s]", pmbbid->name); 185c185 < errlogPrintf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); --- > if(PPOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbid->name, cammsg(pRequest->errCode)); 267c267 < errlogPrintf("Send Message to PPOM Operation Thread Error [%s]", pmbbod->name); --- > if(PPOM_DRV_DEBUG) printf("Send Message to PPOM Operation Thread Error [%s]", pmbbod->name); 282c282 < errlogPrintf("Record [%s] error %s!\n", pmbbod->name, cammsg(pRequest->errCode)); --- > if(PPOM_DRV_DEBUG) printf("Record [%s] error %s!\n", pmbbod->name, cammsg(pRequest->errCode)); Index: PPOMApp/src/drvPPOM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/PPOMApp/src/drvPPOM.c,v retrieving revision 1.4 diff -r1.4 drvPPOM.c 124c124 < errlogPrintf ("camio error %s for PPOM F%dA%d write.\n", --- > if(PPOM_DRV_DEBUG) printf ("camio error %s for PPOM F%dA%d write.\n", 175c175 < errlogPrintf ("camio error %s for PPOM F%dA%d write.\n", --- > if(PPOM_DRV_DEBUG) printf ("camio error %s for PPOM F%dA%d write.\n", 227c227 < errlogPrintf ("camio error %s for PPOM F%dA%d\n", cammsg(iss), pPPOMRequest->f, pPPOMRequest->a); --- > if(PPOM_DRV_DEBUG) printf ("camio error %s for PPOM F%dA%d\n", cammsg(iss), pPPOMRequest->f, pPPOMRequest->a); Index: SAMApp/src/devSAM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/SAMApp/src/devSAM.c,v retrieving revision 1.5 diff -r1.5 devSAM.c 122c122 < errlogPrintf("Record [%s] error %s!\n", pai->name, cammsg(pRequest->errCode)); --- > if (SAM_DRV_DEBUG) printf("Record [%s] error %s!\n", pai->name, cammsg(pRequest->errCode)); 197c197 < errlogPrintf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); --- > if (SAM_DRV_DEBUG) printf("Record [%s] error %s!\n", pbo->name, cammsg(pRequest->errCode)); Index: SAMApp/src/drvSAM.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/PSCD_Camac/SAMApp/src/drvSAM.c,v retrieving revision 1.19 diff -r1.19 drvSAM.c 248c248 < errlogPrintf("camgo error %s\n",cammsg(iss)); --- > if(SAM_DRV_DEBUG) errlogPrintf("camgo error %s\n",cammsg(iss));