|
@@ -1324,7 +1324,10 @@ char *uuid_string(char *buf, char *end, const u8 *addr,
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < 16; i++) {
|
|
|
- p = hex_byte_pack(p, addr[index[i]]);
|
|
|
+ if (uc)
|
|
|
+ p = hex_byte_pack_upper(p, addr[index[i]]);
|
|
|
+ else
|
|
|
+ p = hex_byte_pack(p, addr[index[i]]);
|
|
|
switch (i) {
|
|
|
case 3:
|
|
|
case 5:
|
|
@@ -1337,13 +1340,6 @@ char *uuid_string(char *buf, char *end, const u8 *addr,
|
|
|
|
|
|
*p = 0;
|
|
|
|
|
|
- if (uc) {
|
|
|
- p = uuid;
|
|
|
- do {
|
|
|
- *p = toupper(*p);
|
|
|
- } while (*(++p));
|
|
|
- }
|
|
|
-
|
|
|
return string(buf, end, uuid, spec);
|
|
|
}
|
|
|
|