mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +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;
|
ret = FAIL;
|
||||||
if (hex)
|
if (hex)
|
||||||
sprintf(mess, "Could not %s. Set 0x%x, but read 0x%x\n",
|
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
|
else
|
||||||
sprintf(mess, "Could not %s. Set %d, but read %d\n",
|
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;
|
FILE_LOG(logERROR) << mess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user