Skip to content

Commit 5bb9c4a

Browse files
committed
Fix compiler warnings
1 parent cfb69b4 commit 5bb9c4a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

core/adapters/esrevenadapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,7 @@ std::vector<TTDCallEvent> EsrevenAdapter::GetTTDCallsForSymbols(const std::strin
27752775
auto maxSymbols = adapterSettings->Get<uint64_t>("ttd.maxSymbolsLimit", GetData(), &scope);
27762776
auto timeout = std::chrono::milliseconds(timeoutMs);
27772777

2778-
LogInfo("GetTTDCallsForSymbols: symbols='%s', timeout=%lldms, maxResults=%llu, maxSymbols=%llu",
2778+
LogInfo("GetTTDCallsForSymbols: symbols='%s', timeout=%" PRIu64 "ms, maxResults=%" PRIu64 ", maxSymbols=%" PRIu64,
27792779
symbols.c_str(), timeoutMs, maxResults, maxSymbols);
27802780

27812781
try
@@ -2932,7 +2932,7 @@ std::vector<TTDCallEvent> EsrevenAdapter::GetTTDCallsForSymbols(const std::strin
29322932
// Apply client-side result limiting (Option 2 pattern)
29332933
if (maxResults > 0 && events.size() > maxResults)
29342934
{
2935-
LogWarn("Query returned %zu results, limiting to %llu", events.size(), maxResults);
2935+
LogWarn("Query returned %zu results, limiting to %" PRIu64, events.size(), maxResults);
29362936
events.resize(maxResults);
29372937
}
29382938
}

core/adapters/rspconnector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
#include <inttypes.h>
1718
#include <numeric>
1819
#include <stdexcept>
1920
#include <algorithm>
@@ -248,7 +249,7 @@ RspData RspConnector::ReceiveRspData(std::chrono::milliseconds timeoutDuration)
248249
auto elapsedTime = std::chrono::steady_clock::now() - startTime;
249250
if (elapsedTime > timeoutDuration)
250251
{
251-
LogWarn("ReceiveRspData timeout: failed to receive data within %lldms", timeoutDuration.count());
252+
LogWarn("ReceiveRspData timeout: failed to receive data within %" PRId64 "ms", (int64_t)timeoutDuration.count());
252253
return {}; // Return an empty RspData object
253254
}
254255

0 commit comments

Comments
 (0)