Skip to content

Commit bfe5337

Browse files
committed
fix(info-collector): correct hex formatting for keyboard type data
1 parent 40a4530 commit bfe5337

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

Packages/InfoCollector/Sources/InfoCollector/Plugins/KeyboardTypeCollectorPlugin.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ struct KeyboardTypeCollectorPlugin: InfoCollectorPlugin {
112112
entry = IOIteratorNext(iter)
113113
}
114114

115-
if idx == 0 {
116-
print("No keyboards found in IORegistry.")
117-
}
118115
if lines.isEmpty {
119116
callback(.success(""))
120117
} else {

Packages/InfoCollector/Sources/InfoCollector/Plugins/Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ func osStatusToString(_ status: OSStatus) -> String {
3737
func numberToHex<T: FixedWidthInteger>(_ number: T, withPrefix prefix: Bool = true) -> String {
3838
let width = MemoryLayout<T>.size * 2
3939
let formatString = prefix ? "%#0\(width + 2)X" : "%0\(width)X"
40-
return String(format: formatString, number.littleEndian as! CVarArg)
40+
return String(format: formatString, number as! CVarArg)
4141
}

0 commit comments

Comments
 (0)