|
@@ -1288,7 +1288,6 @@ static void arp_format_neigh_entry(struct seq_file *seq,
|
|
|
struct neighbour *n)
|
|
|
{
|
|
|
char hbuffer[HBUFFERLEN];
|
|
|
- const char hexbuf[] = "0123456789ABCDEF";
|
|
|
int k, j;
|
|
|
char tbuf[16];
|
|
|
struct net_device *dev = n->dev;
|
|
@@ -1302,8 +1301,8 @@ static void arp_format_neigh_entry(struct seq_file *seq,
|
|
|
else {
|
|
|
#endif
|
|
|
for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) {
|
|
|
- hbuffer[k++] = hexbuf[(n->ha[j] >> 4) & 15];
|
|
|
- hbuffer[k++] = hexbuf[n->ha[j] & 15];
|
|
|
+ hbuffer[k++] = hex_asc_hi(n->ha[j]);
|
|
|
+ hbuffer[k++] = hex_asc_lo(n->ha[j]);
|
|
|
hbuffer[k++] = ':';
|
|
|
}
|
|
|
hbuffer[--k] = 0;
|