shared/cpu-set-util: move the part to print cpu-set into a separate function
Also avoid unnecessary asprintf() when we can write to the output area
directly.
(cherry picked from commit a832893f9c4f0a0329768e90f67e2fa24bb0008e)
Related: #1734787
patch_name: 0270-shared-cpu-set-util-move-the-part-to-print-cpu-set-i.patch
present_in_specfile: true
location_in_specfile: 270
squash_commits: true