tracing: replace the crude (unsigned) -1 hackery