[PATCH v2 1/2] lib/vsprintf: refactor duplicate code to special_hex_number()

2015-12-29 Thread Andy Shevchenko
special_hex_number() is a helper to print a fixed size type in a hex format with '0x' prefix, zero padding, and small letters. In the module we have already several copies of such code. Consolidate them under special_hex_number() helper. There are couple of differences though. It seems nobody

[PATCH v2 1/2] lib/vsprintf: refactor duplicate code to special_hex_number()

2015-12-29 Thread Andy Shevchenko
special_hex_number() is a helper to print a fixed size type in a hex format with '0x' prefix, zero padding, and small letters. In the module we have already several copies of such code. Consolidate them under special_hex_number() helper. There are couple of differences though. It seems nobody