Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluesim: Fix function call arguments in debug function #702

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/bluesim/event_queue.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* we need these for the debugging routines only */
#include "priority.h"
extern "C" const char* bk_clock_name(tClock handle);
extern "C" const char* bk_clock_name(tSimStateHdl simHdl, tClock handle);


/* Fundamental heap operations */
Expand Down Expand Up @@ -222,7 +222,7 @@ void EventQueue::clear()
}

/* Print the event queue contents (for debugging) */
void EventQueue::print() const
void EventQueue::print(tSimStateHdl simHdl) const
{
printf("Event queue:\n");
for (unsigned int i = 0; i < count; ++i)
Expand All @@ -231,6 +231,6 @@ void EventQueue::print() const
events[i].fn, events[i].data.ptr, events[i].at,
priority_group_name(priority_group(events[i].priority)),
priority_slot_name(priority_slot(events[i].priority)),
bk_clock_name(priority_clock(events[i].priority)));
bk_clock_name(simHdl, priority_clock(events[i].priority)));
}
}
2 changes: 1 addition & 1 deletion src/bluesim/event_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class EventQueue
void clear();

// debugging utility function
void print() const;
void print(tSimStateHdl simHdl) const;

private: // heap maintenance functions
bool isValid();
Expand Down
Loading