[PATCH net-next 2/7] netconsole: refactor CPU number formatting into separate function