[PATCH net-next v2 3/8] netconsole: refactor CPU number formatting into separate function