From nobody Mon Dec 18 09:09:49 2023 X-Original-To: dev-commits-src-all@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 4StvCy1Z81z54C8D; Mon, 18 Dec 2023 09:09:50 +0000 (UTC) (envelope-from git@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 4StvCx6pfRz4Vx6; Mon, 18 Dec 2023 09:09:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702890590; 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=axeb2NwD4LJsBCtvNJP36jLj395Oi7gBxAhf5/49mJY=; b=exReLMCWmwxnTxEwlFiwJym34Fxo/wjA1Qb9+Bf5cUthSBBOgtwLdHuQA5Dnuoq+7RQAtW xIgPY3UWgBo6a4YX64g822tM3n/7V7iDzZh4DU6Xb4ryJ2d4MeEfLJvn6VvxEMFZgPGfqI NpckkGAYPt51p6Uh/puW+yBNLNFKoGC+I3gQzWMOM6+u+v35mG3q8UDOZf8p4WyxzgYDxA 8+Kn6aSSwlf3XdtNUdv/FYcZpl/1ZAUchTfWBpbUkjqdiRDK+EdcwgXDzzwuHd/Vl4dxME Cq3Uf09/xonhqXZt3e1Dxkpzt9rSQtVjSejw0gGi59IgM26mDylWSJhsiVW+6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702890590; a=rsa-sha256; cv=none; b=VCe/27Il+KPFR35bSxDERAM11dNO7vHGVeQZmPsGego8+9lPeajF53QeUbr1zvP3LHTYMu +m8/SkPXhtsQNGJ3qlgnYm5zPymWZlOs9bfnabsvRJnk6H7KA0j5+OHioZbXAXF5+v4pHR WeDkIwcvz21axNxwP6O82YkEuX2dUlySvGskZkRukoPxnD8u1Ubv/bUFaZ2zDt9q8PzmLM W7f8aCnwwf37xFv8Cb1nFcoIT5qQk2D3NuaI88R518d3tSzJ63TwAXNB2dlEeChsHaSMLz IWnb3lGD5i3HSRorIPQncimBGQLNwzsj+jtFmYIzUT4crwuwvJw9BkJvM65BgA== 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=1702890590; 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=axeb2NwD4LJsBCtvNJP36jLj395Oi7gBxAhf5/49mJY=; b=t+osmQLio+RxMl33h2WEK1EUbz2+dlwAFG23lsxvfhawKm8mLvlAC3LsDZk8JnM7dt/Cc+ aRmfGIY4YysA6Iqm1TdeS6t3h71zvdd5qf+/5srKb99ky13TL0duC/fOuZNJKgjvyF2tKp yNdN6m2Q/DswoTELSFlCeET2hUf6rN6dT6qlrLIx7H/3TlKaEApeYGgLo0CnIlz2CZBP3Q lj5DH5rp9C/AdG/Jy+dDvJ9fyD3egFGdwKRJqEpeVv50bzWkF8TIr64ADZiTe2KeN3h4h7 ZJvvc7wOcMpCfPgwFxmnEoPgf4zAXHYO7VJkBiC/Kgepz8iKeBPj7rb6aj0zsQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4StvCx4yRtzYm; Mon, 18 Dec 2023 09:09:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BI99nd2068519; Mon, 18 Dec 2023 09:09:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BI99nDJ068516; Mon, 18 Dec 2023 09:09:49 GMT (envelope-from git) Date: Mon, 18 Dec 2023 09:09:49 GMT Message-Id: <202312180909.3BI99nDJ068516@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ram Kishore Vegesna Subject: git: a9504d76ccda - main - ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ram X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9504d76ccdad240b7d5761f4208e252f57042dd Auto-Submitted: auto-generated The branch main has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=a9504d76ccdad240b7d5761f4208e252f57042dd commit a9504d76ccdad240b7d5761f4208e252f57042dd Author: Ram Kishore Vegesna AuthorDate: 2023-12-13 07:56:40 +0000 Commit: Ram Kishore Vegesna CommitDate: 2023-12-18 08:52:06 +0000 ocs_fc: Use xpt_path_sbuf() to copy the path to sbuf. Reported by: imp MFC after: 1 week --- sys/dev/ocs_fc/ocs_cam.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_cam.c b/sys/dev/ocs_fc/ocs_cam.c index 0fa94083e898..a944c7628d85 100644 --- a/sys/dev/ocs_fc/ocs_cam.c +++ b/sys/dev/ocs_fc/ocs_cam.c @@ -1540,15 +1540,13 @@ static int32_t ocs_scsi_initiator_io_cb(ocs_io_t *io, } } else if (scsi_status != OCS_SCSI_STATUS_GOOD) { const char *err_desc = NULL; - char path_str[64]; char err_str[224]; struct sbuf sb; size_t i; sbuf_new(&sb, err_str, sizeof(err_str), 0); - xpt_path_string(ccb->ccb_h.path, path_str, sizeof(path_str)); - sbuf_cat(&sb, path_str); + xpt_path_sbuf(ccb->ccb_h.path, &sb); for (i = 0; i < (sizeof(ocs_status_desc) / sizeof(ocs_status_desc[0])); i++) {