[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1410554830.9942.52.camel@joe-AO725>
Date: Fri, 12 Sep 2014 13:47:10 -0700
From: Joe Perches <joe@...ches.com>
To: David Howells <dhowells@...hat.com>
Cc: Mimi Zohar <zohar@...ux.vnet.ibm.com>, vgoyal@...hat.com,
keyrings@...ux-nfs.org, linux-kernel@...r.kernel.org
Subject: Re: [Keyrings] [PATCH 1/9] Provide a binary to hex conversion
function
On Fri, 2014-09-12 at 21:30 +0100, David Howells wrote:
> Mimi Zohar <zohar@...ux.vnet.ibm.com> wrote:
> > How about using hex_byte_pack()?
> It doesn't do a bufferful, only one byte.
I think Mimi meant using something like:
char *bin2hex(char *dst, const void *src, size_t count)
{
const unsigned char *_src = src;
while (count--)
dst = hex_byte_pack(dst, *_src++);
return dst;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists