[openEuler-5.10-LTS 428/501] spmi: trace: fix stack-out-of-bound access in SPMI tracing functions