From owner-svn-src-head@freebsd.org Tue Jun 9 16:06:11 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A9A7331856; Tue, 9 Jun 2020 16:06:11 +0000 (UTC) (envelope-from br@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49hFNL6ZFKz3gB2; Tue, 9 Jun 2020 16:06:10 +0000 (UTC) (envelope-from br@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DCBFB17DED; Tue, 9 Jun 2020 16:06:10 +0000 (UTC) (envelope-from br@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 059G6A2c082983; Tue, 9 Jun 2020 16:06:10 GMT (envelope-from br@FreeBSD.org) Received: (from br@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 059G6ABX082982; Tue, 9 Jun 2020 16:06:10 GMT (envelope-from br@FreeBSD.org) Message-Id: <202006091606.059G6ABX082982@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: br set sender to br@FreeBSD.org using -f From: Ruslan Bukin Date: Tue, 9 Jun 2020 16:06:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361969 - head/sys/arm64/coresight X-SVN-Group: head X-SVN-Commit-Author: br X-SVN-Commit-Paths: head/sys/arm64/coresight X-SVN-Commit-Revision: 361969 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2020 16:06:11 -0000 Author: br Date: Tue Jun 9 16:06:10 2020 New Revision: 361969 URL: https://svnweb.freebsd.org/changeset/base/361969 Log: Fix style: wrap long lines. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/coresight/coresight.c Modified: head/sys/arm64/coresight/coresight.c ============================================================================== --- head/sys/arm64/coresight/coresight.c Tue Jun 9 15:56:41 2020 (r361968) +++ head/sys/arm64/coresight/coresight.c Tue Jun 9 16:06:10 2020 (r361969) @@ -78,30 +78,33 @@ coresight_get_ports(phandle_t dev_node, strncasecmp(name, "port@", 6)) { port_reg = -1; - OF_getencprop(child, "reg", (void *)&port_reg, sizeof(port_reg)); + OF_getencprop(child, "reg", (void *)&port_reg, + sizeof(port_reg)); endpoint_child = ofw_bus_find_child(child, "endpoint"); if (endpoint_child) { - if (OF_getencprop(endpoint_child, "remote-endpoint", &xref, + if (OF_getencprop(endpoint_child, + "remote-endpoint", &xref, sizeof(xref)) == -1) { printf("failed\n"); continue; } - endp = malloc(sizeof(struct endpoint), M_CORESIGHT, - M_WAITOK | M_ZERO); + endp = malloc(sizeof(struct endpoint), + M_CORESIGHT, M_WAITOK | M_ZERO); endp->my_node = endpoint_child; endp->their_node = OF_node_from_xref(xref); endp->dev_node = dev_node; endp->reg = port_reg; - if (OF_getproplen(endpoint_child, "slave-mode") >= 0) { + if (OF_getproplen(endpoint_child, + "slave-mode") >= 0) { pdata->in_ports++; endp->slave = 1; - } else { + } else pdata->out_ports++; - } mtx_lock(&pdata->mtx_lock); - TAILQ_INSERT_TAIL(&pdata->endpoints, endp, link); + TAILQ_INSERT_TAIL(&pdata->endpoints, + endp, link); mtx_unlock(&pdata->mtx_lock); } }