Reformat padding bytes function

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>