firstitem isn't a parameter of the function, so shouldn't be in LOGCALL.  If the value is useful, report it using LOGLINE.