Commit 0d27e4b7 authored by Brice Videau's avatar Brice Videau
Browse files

Conform uuid display to Intel's.

parent 7e6199c6
Pipeline #11576 failed with stage
......@@ -225,26 +225,26 @@ module ZE
def to_s
a = self[:id].to_a
s = "{ id: "
s << "%02x" % a[3]
s << "%02x" % a[2]
s << "%02x" % a[1]
s << "%02x" % a[0]
s << "%02x" % a[15]
s << "%02x" % a[14]
s << "%02x" % a[13]
s << "%02x" % a[12]
s << "-"
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[11]
s << "%02x" % a[10]
s << "-"
s << "%02x" % a[9]
s << "%02x" % a[8]
s << "-"
s << "%02x" % a[7]
s << "%02x" % a[6]
s << "-"
s << "%02x" % a[8]
s << "%02x" % a[9]
s << "-"
s << "%02x" % a[10]
s << "%02x" % a[11]
s << "%02x" % a[12]
s << "%02x" % a[13]
s << "%02x" % a[14]
s << "%02x" % a[15]
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[3]
s << "%02x" % a[2]
s << "%02x" % a[1]
s << "%02x" % a[0]
s << " }"
end
end
......@@ -253,48 +253,48 @@ module ZE
def to_s
a = self[:kid].to_a
s = "{ kid: "
s << "%02x" % a[3]
s << "%02x" % a[2]
s << "%02x" % a[1]
s << "%02x" % a[0]
s << "%02x" % a[15]
s << "%02x" % a[14]
s << "%02x" % a[13]
s << "%02x" % a[12]
s << "-"
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[11]
s << "%02x" % a[10]
s << "-"
s << "%02x" % a[9]
s << "%02x" % a[8]
s << "-"
s << "%02x" % a[7]
s << "%02x" % a[6]
s << "-"
s << "%02x" % a[8]
s << "%02x" % a[9]
s << "-"
s << "%02x" % a[10]
s << "%02x" % a[11]
s << "%02x" % a[12]
s << "%02x" % a[13]
s << "%02x" % a[14]
s << "%02x" % a[15]
a = self[:mid].to_a
s << ", mid: "
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[3]
s << "%02x" % a[2]
s << "%02x" % a[1]
s << "%02x" % a[0]
a = self[:mid].to_a
s << ", mid: "
s << "%02x" % a[15]
s << "%02x" % a[14]
s << "%02x" % a[13]
s << "%02x" % a[12]
s << "-"
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[11]
s << "%02x" % a[10]
s << "-"
s << "%02x" % a[9]
s << "%02x" % a[8]
s << "-"
s << "%02x" % a[7]
s << "%02x" % a[6]
s << "-"
s << "%02x" % a[8]
s << "%02x" % a[9]
s << "-"
s << "%02x" % a[10]
s << "%02x" % a[11]
s << "%02x" % a[12]
s << "%02x" % a[13]
s << "%02x" % a[14]
s << "%02x" % a[15]
s << "%02x" % a[5]
s << "%02x" % a[4]
s << "%02x" % a[3]
s << "%02x" % a[2]
s << "%02x" % a[1]
s << "%02x" % a[0]
s << " }"
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment