mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
Merge pull request #7 from slsdetectorgroup/fix-sprintf-warnings
Fix sprintf warnings
This commit is contained in:
commit
ceb515d517
@ -292,10 +292,10 @@ void slsReceiverTCPIPInterface::validate(T arg, T retval, std::string modename,
|
||||
ret = FAIL;
|
||||
if (hex)
|
||||
sprintf(mess, "Could not %s. Set 0x%x, but read 0x%x\n",
|
||||
modename.c_str(), arg, retval);
|
||||
modename.c_str(), (unsigned int) arg, (unsigned int) retval);
|
||||
else
|
||||
sprintf(mess, "Could not %s. Set %d, but read %d\n",
|
||||
modename.c_str(), arg, retval);
|
||||
modename.c_str(), (unsigned int) arg, (unsigned int) retval);
|
||||
FILE_LOG(logERROR) << mess;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user