From a6b917851c97c814d5ee1121a61c76c23ba4e4eb Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 7 Feb 2018 15:22:19 +0100 Subject: [PATCH] finetuning printout --- slsDetectorSoftware/slsDetector/slsDetector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 2ae6ba02e..9c1e74567 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -6727,12 +6727,12 @@ int slsDetector::configureMAC(){ if (strcasecmp(arg[0],thisDetector->detectorMAC)) { memset(thisDetector->detectorMAC, 0, MAX_STR_LENGTH); strcpy(thisDetector->detectorMAC, arg[0]); - std::cout << "Detector MAC updated to " << thisDetector->detectorMAC << endl; + cprintf(RESET,"%d: Detector MAC updated to %s\n", detId, thisDetector->detectorMAC); } if (strcasecmp(arg[1],thisDetector->detectorIP)) { memset(thisDetector->detectorIP, 0, MAX_STR_LENGTH); - strcpy(thisDetector->detectorIP, arg[0]); - std::cout << "Detector IP updated to " << thisDetector->detectorIP << endl; + strcpy(thisDetector->detectorIP, arg[1]); + cprintf(RESET,"%d: Detector IP updated to %s\n", detId, thisDetector->detectorIP); } } }