Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Signed-off-by: Denis Cheng <redacted>
---
net/ipv4/arp.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Signed-off-by: Denis Cheng <redacted>
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Signed-off-by: Denis Cheng <redacted>
Applied, thanks.
You may want to use the hex_asc_hi, hex_asc_lo helpers to do the
mask/shifts for you.
Harvey
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Signed-off-by: Denis Cheng <redacted>
Applied, thanks.
You may want to use the hex_asc_hi, hex_asc_lo helpers to do the
mask/shifts for you.
Good idea, I'll revert, Denis can you generate a new patch?
Thanks.
From bc47e710a3ebd8a5989404f711a051b6516d01ed Mon Sep 17 00:00:00 2001
From: Denis Cheng <redacted>
Date: Wed, 21 May 2008 09:43:32 +0800
Subject: [PATCH] net/ipv4/arp.c: Use common hex_asc helpers
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Thanks to Harvey Harrison to introduce the hex_asc_hi/hex_asc_lo helpers.
Signed-off-by: Denis Cheng <redacted>
Signed-off-by: Harvey Harrison <redacted>
Acked-by: David S. Miller <davem@davemloft.net>
---
net/ipv4/arp.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
net/ipv4/arp.c: Use common hex_asc helpers
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Thanks to Harvey Harrison to introduce the hex_asc_hi/hex_asc_lo helpers.
Signed-off-by: Denis Cheng <redacted>
Signed-off-by: Harvey Harrison <redacted>
Applied, thanks.
Harvey I know you posted a nearly identical patch, I had
to choose one and he did credit you with the idea for the
updated patch, so I hope this is OK.
Thanks.
net/ipv4/arp.c: Use common hex_asc helpers
Here the local hexbuf is a duplicate of global const char hex_asc from
lib/hexdump.c, except the hex letters' cases:
const char hexbuf[] = "0123456789ABCDEF";
const char hex_asc[] = "0123456789abcdef";
and here to print HW addresses, the hex cases are not significant.
Thanks to Harvey Harrison to introduce the hex_asc_hi/hex_asc_lo helpers.
Signed-off-by: Denis Cheng <redacted>
Signed-off-by: Harvey Harrison <redacted>
Applied, thanks.
Harvey I know you posted a nearly identical patch, I had
to choose one and he did credit you with the idea for the
updated patch, so I hope this is OK.
His had the better changelog, I just sent mine to make my point clear
what the patch could look like.
No problems here.
Harvey
On Thu, May 22, 2008 at 8:37 AM, Harvey Harrison
[off-list ref] wrote:
quoted
Applied, thanks.
Harvey I know you posted a nearly identical patch, I had
to choose one and he did credit you with the idea for the
updated patch, so I hope this is OK.
His had the better changelog, I just sent mine to make my point clear
what the patch could look like.
No problems here.