[PATCH 0/2] i2c-tools fixes

Bartosz Gołaszewski bartekgola at gmail.com
Mon May 4 08:07:33 UTC 2015


2015-04-21 14:29 GMT+02:00 Bartosz Golaszewski <bartekgola at gmail.com>:
> I've stumbled upon this bug, where calling i2cdetect -l prints usage and
> exits. The culprit is the opt_complementary string which causes getopt32()
> to bail-out if no non-option arguments are encountered.
>
> I think the check for (argc < 1) in i2cdetect_main() got removed from
> my original submission. The first patch restores it.
>
> The second patch proposes to modify the behaviour of i2c_dev_open().
>
> Bartosz Golaszewski (2):
>   i2c-tools: fix 'i2cdetect -l'
>   i2c-tools: only try /dev/i2c/* if opening /dev/i2c-* fails with ENOENT
>
>  miscutils/i2c_tools.c | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
>
> --
> 2.1.4
>

Ping.

Best regards,
Bartosz Golaszewski


More information about the busybox mailing list