diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-10-31 20:12:41 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:56 -0400 |
| commit | 55036ba76b2d2fd53b5c00993fcec5ed56e83922 (patch) | |
| tree | b6f82d9b9d91bab4424bc04f8f7e664a639dc8dd /lib | |
| parent | 66f6958e69d8055277356d3cc2e7a1d734db1755 (diff) | |
lib: rename pack_hex_byte() to hex_byte_pack()
As suggested by Andrew Morton in [1] there is better to have most
significant part first in the function name.
[1] https://lkml.org/lkml/2011/9/20/22
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Mimi Zohar <zohar@us.ibm.com>
Cc: James Morris <jmorris@namei.org>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vsprintf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index c1a3927326eb..993599e66e5a 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
| @@ -547,7 +547,7 @@ char *mac_address_string(char *buf, char *end, u8 *addr, | |||
| 547 | } | 547 | } |
| 548 | 548 | ||
| 549 | for (i = 0; i < 6; i++) { | 549 | for (i = 0; i < 6; i++) { |
| 550 | p = pack_hex_byte(p, addr[i]); | 550 | p = hex_byte_pack(p, addr[i]); |
| 551 | if (fmt[0] == 'M' && i != 5) | 551 | if (fmt[0] == 'M' && i != 5) |
| 552 | *p++ = separator; | 552 | *p++ = separator; |
| 553 | } | 553 | } |
| @@ -667,13 +667,13 @@ char *ip6_compressed_string(char *p, const char *addr) | |||
| 667 | lo = word & 0xff; | 667 | lo = word & 0xff; |
| 668 | if (hi) { | 668 | if (hi) { |
| 669 | if (hi > 0x0f) | 669 | if (hi > 0x0f) |
| 670 | p = pack_hex_byte(p, hi); | 670 | p = hex_byte_pack(p, hi); |
| 671 | else | 671 | else |
| 672 | *p++ = hex_asc_lo(hi); | 672 | *p++ = hex_asc_lo(hi); |
| 673 | p = pack_hex_byte(p, lo); | 673 | p = hex_byte_pack(p, lo); |
| 674 | } | 674 | } |
| 675 | else if (lo > 0x0f) | 675 | else if (lo > 0x0f) |
| 676 | p = pack_hex_byte(p, lo); | 676 | p = hex_byte_pack(p, lo); |
| 677 | else | 677 | else |
| 678 | *p++ = hex_asc_lo(lo); | 678 | *p++ = hex_asc_lo(lo); |
| 679 | needcolon = true; | 679 | needcolon = true; |
| @@ -695,8 +695,8 @@ char *ip6_string(char *p, const char *addr, const char *fmt) | |||
| 695 | int i; | 695 | int i; |
| 696 | 696 | ||
| 697 | for (i = 0; i < 8; i++) { | 697 | for (i = 0; i < 8; i++) { |
| 698 | p = pack_hex_byte(p, *addr++); | 698 | p = hex_byte_pack(p, *addr++); |
| 699 | p = pack_hex_byte(p, *addr++); | 699 | p = hex_byte_pack(p, *addr++); |
| 700 | if (fmt[0] == 'I' && i != 7) | 700 | if (fmt[0] == 'I' && i != 7) |
| 701 | *p++ = ':'; | 701 | *p++ = ':'; |
| 702 | } | 702 | } |
| @@ -754,7 +754,7 @@ char *uuid_string(char *buf, char *end, const u8 *addr, | |||
| 754 | } | 754 | } |
| 755 | 755 | ||
| 756 | for (i = 0; i < 16; i++) { | 756 | for (i = 0; i < 16; i++) { |
| 757 | p = pack_hex_byte(p, addr[index[i]]); | 757 | p = hex_byte_pack(p, addr[index[i]]); |
| 758 | switch (i) { | 758 | switch (i) { |
| 759 | case 3: | 759 | case 3: |
| 760 | case 5: | 760 | case 5: |
