Skip to content

Commit

Permalink
Added logging for device opening in LimeDriver
Browse files Browse the repository at this point in the history
The LimeDriver now outputs a message to standard output when attempting
to open a device, offering real-time feedback on which device is being
accessed. This aids in debugging and provides users with immediate
visibility into driver actions.
  • Loading branch information
kumitterer committed Feb 17, 2024
1 parent 017742f commit a50192b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/limedriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ h5c++ -shlib limedriver.cpp -std=c++11 -lLimeSuite -o limedriver

#include "limedriver.h"
#include <H5PredType.h>
#include <iostream>
#include <lime/LimeSuite.h>
#include <vector>

Expand Down Expand Up @@ -129,6 +130,8 @@ lms_device_t *openDevice(const std::string &info) {
info_string = deviceList[0];
}

cout << "Opening device: " << info_string << endl;

lms_device_t *dev = NULL;
if (LMS_Open(&dev, info.c_str(), NULL)) {
error();
Expand Down

0 comments on commit a50192b

Please sign in to comment.