drivers/base/cpu: Use scnprintf() for avoiding potential buffer overflow