From 911b13eecf98a3e1f4381275da63856ad1a6f5f9 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 27 Nov 2008 15:00:21 +0000 Subject: [PATCH] 2 digits are enough to print an I2C address. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5437 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 1ee8b663..f1f2aefe 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3144,7 +3144,7 @@ sub scan_isa_bus $new_hash = add_isa_to_chips_detected($chip->{alias_detect}, $chip->{driver}, $new_hash); if ($new_hash) { - printf " Alias of the chip on I2C bus `%s', address 0x%04x\n", + printf " Alias of the chip on I2C bus `%s', address 0x%02x\n", $new_hash->{i2c_adap}, $new_hash->{i2c_addr}; } }