Skip to content

Commit

Permalink
Fixed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
drmeister committed Jul 1, 2024
1 parent 7070261 commit 8012501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void maybe_verify_dladdr( core::ClaspXepFunction& entryPoints,
if (ret == 0) {
failed_dladdr = true;
gatherP->_uniqueEntryPointsFailedDladdr.insert(address);
printf("%s:%d:%s dladdr failed on entry point[%d] %p for %s\n",
printf("%s:%d:%s dladdr failed on entry point[%zu] %p for %s\n",
__FILE__, __LINE__, __FUNCTION__,
ii, (void*)address,
_rep_(functionDescription->_functionName).c_str());
Expand Down
4 changes: 2 additions & 2 deletions src/gctools/boehmGarbageCollection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ void clasp_gc_room(std::ostringstream& OutputStream, RoomVerbosity verbosity) {
OutputStream << "Total number of Libraries: " << std::setw(12) << cl__length(_lisp->_Roots._AllLibraries) << '\n';
OutputStream << "Total number of ObjectFiles: " << std::setw(12) << cl__length(_lisp->_Roots._AllObjectFiles) << '\n';
OutputStream << "Total number of CodeBlocks: " << std::setw(12) << cl__length(_lisp->_Roots._AllCodeBlocks) << '\n';
OutputStream << "Total number of SimpleFun: " << std::setw(12) << gatherObjects._SimpleFunCount;
OutputStream << "Total number of SimpleFun: " << std::setw(12) << gatherObjects._SimpleFunCount << '\n';
if (gatherObjects._SimpleFunFailedDladdrCount>0) {
OutputStream << "Total number of SimpleFun failed dladdr: " << std::setw(12) << gatherObjects._SimpleFunFailedDladdrCount;
OutputStream << "Total number of SimpleFun failed dladdr: " << std::setw(12) << gatherObjects._SimpleFunFailedDladdrCount << '\n';
}
OutputStream << "Unique entry points: " << std::setw(12) << gatherObjects._uniqueEntryPoints.size() << '\n';
if (gatherObjects._uniqueEntryPointsFailedDladdr.size()>0) {
Expand Down

0 comments on commit 8012501

Please sign in to comment.