History

uuid: rename uuid types

Our "little endian" UUID really is a Wintel GUID, so rename it and its helpers such (guid_t). The big endian UUID is the only true one, so give it the name uuid_t. The uuid_le and uuid_be names are retained for now, but will hopefully go away soon. The exception to that are the _cmp helpers that will be replaced by better primitives ASAP and thus don't get the new names. Also the _to_bin helpers are named to match the better named uuid_parse routine in userspace. Also remove the existing typedef in XFS that's now been superceeded by the generic type name. Signed-off-by: Christoph Hellwig <hch@lst.de> [andy: also update the UUID_LE/UUID_BE macros including fallout] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Christoph Hellwig committed 9 years ago

Commit f9727a11 parent 60927bc6 files · +73 −62Browse files

Showing the changes to lib/vsprintf.c (1 of 6 files). Show all

Unified · Split

lib/vsprintf.c+2−2
@@ -1308,14 +1308,14 @@ char *uuid_string(char *buf, char *end, const u8 *addr, · 1307 unmodified lines
13081308 char uuid[UUID_STRING_LEN + 1];
13091309 char *p = uuid;
13101310 int i;
1311− const u8 *index = uuid_be_index;
1311+ const u8 *index = uuid_index;
13121312 bool uc = false;
13131313
13141314 switch (*(++fmt)) {
13151315 case 'L':
13161316 uc = true; /* fall-through */
13171317 case 'l':
1318− index = uuid_le_index;
1318+ index = guid_index;
13191319 break;
13201320 case 'B':
13211321 uc = true;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t