From 56a4000b675cd653068423cd7cfc66c75404c9af Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Sun, 5 Nov 2023 13:00:26 +0100 Subject: [PATCH] fixed debug output --- calc.go | 2 +- stack.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calc.go b/calc.go index 0407d8a..dc6d97e 100644 --- a/calc.go +++ b/calc.go @@ -317,7 +317,7 @@ func (c *Calc) DoFuncall(funcname string) error { args = c.stack.Last(function.Expectargs) } - c.Debug(fmt.Sprintf("args: %v", args)) + c.Debug(fmt.Sprintf("calling %s with args: %v", funcname, args)) // the actual lambda call, so to say. We provide a slice of // the requested size, fetched from the stack (but not popped diff --git a/stack.go b/stack.go index f1a9b18..b4105f1 100644 --- a/stack.go +++ b/stack.go @@ -161,7 +161,7 @@ func (s *Stack) Dump() { } func (s *Stack) Clear() { - s.Debug("DEBUG: clearing stack") + s.Debug("clearing stack") s.linklist = list.List{} }