From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 2 Apr 2014 17:18:44 -0400 Subject: [U-Boot] [U-Boot, v6, 2/6] lib: uuid: code refactor for proper maintain between uuid bin and string In-Reply-To: <1396426807-30510-2-git-send-email-p.marczak@samsung.com> References: <1396426807-30510-2-git-send-email-p.marczak@samsung.com> Message-ID: <20140402211844.GE16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Apr 02, 2014 at 10:20:03AM +0200, Przemyslaw Marczak wrote: > Changes in lib/uuid.c to: > - uuid_str_to_bin() > - uuid_bin_to_str() > > New parameter is added to specify input/output string format in listed functions > This change allows easy recognize which UUID type is or should be stored in given > string array. Binary data of UUID and GUID is always stored in big endian, only > string representations are different as follows. > > String byte: 0 36 > String char: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx > string UUID: be be be be be > string GUID: le le le be be > > This patch also updates functions calls and declarations in a whole code. > > Signed-off-by: Przemyslaw Marczak > Cc: Stephen Warren > Cc: Lukasz Majewski > Cc: trini at ti.com Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: