From b2739867fce1d6eff5fae9c8767bd8bee10d3d94 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 15 Oct 2006 10:38:28 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + prog/detect/i2cdetect.8 | 2 +- prog/detect/i2cdetect.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 947edcee..8e74709b 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN HEAD Man page i2cdetect.8: Describe the output convention Man page sensors.1: Update (option -c) and clean up Module icspll: Delete. It was useless and dangerous. + Program i2cdetect: Make the output clearer Program sensord: Add pc87247 support (fans only) Program sensors: Add pc87247 support (fans only) Hide error on missing f71805f fan diff --git a/prog/detect/i2cdetect.8 b/prog/detect/i2cdetect.8 index f47452f0..c9a7ce43 100644 --- a/prog/detect/i2cdetect.8 +++ b/prog/detect/i2cdetect.8 @@ -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. diff --git a/prog/detect/i2cdetect.c b/prog/detect/i2cdetect.c index 50ffe079..9ad02d81 100644 --- a/prog/detect/i2cdetect.c +++ b/prog/detect/i2cdetect.c @@ -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); }