From nobody Thu May 23 20:10:51 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VlfSC4jsbz5LDWb for ; Thu, 23 May 2024 20:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VlfSC1yfFz3yjS for ; Thu, 23 May 2024 20:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716495051; a=rsa-sha256; cv=none; b=YA7kD86jwsvXx1103mFGniAH08W76wVukOk9gHyuYag1T13+CetiIDMRHFitqtBNWkxjly 96g+K2qj3KC4XLhGN6VjhcvlP53/f+bvWAo+ZH0q4Bi9LThHYXsOvtsHF8fpiwuU0ZrcIM Rq9ZOqpb8EmJaEb7dBLomHi1Wqvf9e4y5jndglwPecbO7lNohLbqfkwrlfNMYDT5zBssMI Bl2gPw4Koeqi2oSuvBE+kCsSa37+J1jlZf2a0M86DPdkM2H5erSK9Ytrw6iL2WQevp6GBe rxdFDsuf23av+cqCPEMLnreQZGnx2rTwxQX26hD+WxdDU0vrGTBj6kT5Se+3ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716495051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QFVOBDaZmZ63KDbAZ4Hl27MlYKEtTGGnWKuktzBtY6k=; b=DI392hbGlDWRCqIt7sa/c9jMjpF0K8ccfs9Ub5XNNfzgiJpiKTku1S1pE5k9oM3a+W8dxP LO5pm4TD28sGRKmp4c5rZJcK4L4VJcMLUk3DeitZdr+2wWaO3QSu8LFBXFnobkOOq+I72N a9pAhVYJE+FTHPfi9Nw249DHOgjUVG3Mz+XcbEITizLpShjnyw5pr6eK8cEqrPvhfFVjPF wThWjMeskYDZ+sDlaUnn4anlKLkFO+bkbOBwfZonsAwX0my3Fv+pW0MhaHyQcnLekmS4mP rth1a3NHudKhmb4Q1UBaXlaTtYTHNomC4iNZtoIG/dVrHxfjtSaFUpDDsNkU8g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VlfSC1ZMLz13Ws for ; Thu, 23 May 2024 20:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44NKApfJ036582 for ; Thu, 23 May 2024 20:10:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44NKApEY036574 for bugs@FreeBSD.org; Thu, 23 May 2024 20:10:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 279261] i2c -sv reports stack garbage in message Date: Thu, 23 May 2024 20:10:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279261 Bug ID: 279261 Summary: i2c -sv reports stack garbage in message Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu Created attachment 250908 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250908&action= =3Dedit Initialize i2c_opt.addr to 0 # i2c -sv dev: /dev/iic0, addr: 0x6cfb7d5c, r/w: r, offset: 0x00, width: 8, count: 1 Hardware may not support START/STOP scanning; trying less-reliable read met= hod. Scanning I2C devices on /dev/iic0: 11 # i2c -f /dev/iic1 -rv dev: /dev/iic1, addr: 0x1903955c, r/w: r, offset: 0x00, width: 8, count: 1 Resetting I2C controller on /dev/iic1 The address 0x6cfb7d5c or 0x1903955c is an uninitialized field in variable i2c_opt and varies from run to run. It is not actually relevant when scann= ing or resetting. The attached patch avoids printing the "dev:" line when verbose in scan or reset mode. The bus name is printed elsewhere and the rest of the fields a= re not relevant. It also initializes the address to 0 just in case it gets us= ed somehow now or in the future. --=20 You are receiving this mail because: You are the assignee for the bug.=