HomeFreeBSD

i2c: Don't print uninitialized data when verbose

Description

i2c: Don't print uninitialized data when verbose

i2c -sv or i2c -rv prints an uninitialized field i2c_opt.addr.
Suppress the verbose message entirely for scan and reset,
where it provides no information, and zero initialize the field.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279261

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1345

Details

Provenance
John F. Carr <jfc@mit.edu>Authored on May 23 2024, 7:50 PM
impCommitted on Fri, Sep 20, 3:37 PM
Parents
rG6e45b50342d5: mac_veriexec_parser: Fix open_file error handling
Branches
Unknown
Tags
Unknown