lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4821FCC1.8070907@imap.cc>
Date:	Wed, 07 May 2008 21:02:25 +0200
From:	Tilman Schmidt <tilman@...p.cc>
To:	Harvey Harrison <harvey.harrison@...il.com>
CC:	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 11/12] isdn: use the common ascii hex helpers

On 02.05.2008 21:01, Harvey Harrison wrote:
> Signed-off-by: Harvey Harrison <harvey.harrison@...il.com>
Acked-by: Tilman Schmidt <tilman@...p.cc>

Thanks,
Tilman

> ---
>  drivers/isdn/gigaset/isocdata.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c
> index e30a777..fbce522 100644
> --- a/drivers/isdn/gigaset/isocdata.c
> +++ b/drivers/isdn/gigaset/isocdata.c
> @@ -247,7 +247,6 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
>  #ifdef CONFIG_GIGASET_DEBUG
>  	unsigned char c;
>  	static char dbgline[3 * 32 + 1];
> -	static const char hexdigit[] = "0123456789abcdef";
>  	int i = 0;
>  	while (count-- > 0) {
>  		if (i > sizeof(dbgline) - 4) {
> @@ -258,8 +257,8 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
>  		c = *bytes++;
>  		dbgline[i] = (i && !(i % 12)) ? '-' : ' ';
>  		i++;
> -		dbgline[i++] = hexdigit[(c >> 4) & 0x0f];
> -		dbgline[i++] = hexdigit[c & 0x0f];
> +		dbgline[i++] = hex_asc_hi(c);
> +		dbgline[i++] = hex_asc_lo(c);
>  	}
>  	dbgline[i] = '\0';
>  	gig_dbg(level, "%s:%s", tag, dbgline);


Download attachment "signature.asc" of type "application/pgp-signature" (255 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ