[openEuler-5.10 423/496] spmi: trace: fix stack-out-of-bound access in SPMI tracing functions