mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
i2cdetect: Make the output clearer, by replacing "XX" for missed
probed by "--". That way the successful probes will be more visible. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4213 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -34,7 +34,7 @@ This program can confuse your I2C bus, cause data loss and worse!
|
||||
.SH INTERPRETING THE OUTPUT
|
||||
Each cell in the output table will contain one of the following symbols:
|
||||
.IP \(bu "\w'\(bu'u+1n"
|
||||
"XX". The address was probed but no chip answered.
|
||||
"--". The address was probed but no chip answered.
|
||||
.IP \(bu
|
||||
"UU". Probing was skipped, because this address is currently in use by
|
||||
a driver. This strongly suggests that there is a chip at this address.
|
||||
|
@@ -103,7 +103,7 @@ int scan_i2c_bus(int file, const int mode, const int first, const int last)
|
||||
}
|
||||
|
||||
if (res < 0)
|
||||
printf("XX ");
|
||||
printf("-- ");
|
||||
else
|
||||
printf("%02x ", i+j);
|
||||
}
|
||||
|
Reference in New Issue
Block a user