Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2020 06:17:55 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361325 - head/sys/arm/xilinx
Message-ID:  <202005210617.04L6Ht8S025600@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmg
Date: Thu May 21 06:17:54 2020
New Revision: 361325
URL: https://svnweb.freebsd.org/changeset/base/361325

Log:
  minor cleanup of white space, and function name in panic...
  
  This is a partial commit of the review.
  
  Submitted by:   Thomas Skibo
  Differential Revision:  https://reviews.freebsd.org/D23319
  Reviewed by:	andrew

Modified:
  head/sys/arm/xilinx/zy7_mp.c

Modified: head/sys/arm/xilinx/zy7_mp.c
==============================================================================
--- head/sys/arm/xilinx/zy7_mp.c	Thu May 21 05:34:02 2020	(r361324)
+++ head/sys/arm/xilinx/zy7_mp.c	Thu May 21 06:17:54 2020	(r361325)
@@ -58,7 +58,7 @@ zynq7_mp_setmaxid(platform_t plat)
 	mp_ncpus = 2;
 }
 
-void    
+void
 zynq7_mp_start_ap(platform_t plat)
 {
 	bus_space_handle_t scu_handle;
@@ -67,8 +67,8 @@ zynq7_mp_start_ap(platform_t plat)
 
 	/* Map in SCU control register. */
 	if (bus_space_map(fdtbus_bs_tag, SCU_CONTROL_REG, 4,
-			  0, &scu_handle) != 0)
-		panic("platform_mp_start_ap: Couldn't map SCU config reg\n");
+	    0, &scu_handle) != 0)
+		panic("%s: Could not map SCU control reg.\n", __func__);
 
 	/* Set SCU enable bit. */
 	scu_ctrl = bus_space_read_4(fdtbus_bs_tag, scu_handle, 0);
@@ -80,7 +80,7 @@ zynq7_mp_start_ap(platform_t plat)
 	/* Map in magic location to give entry address to CPU1. */
 	if (bus_space_map(fdtbus_bs_tag, ZYNQ7_CPU1_ENTRY, 4,
 	    0, &ocm_handle) != 0)
-		panic("platform_mp_start_ap: Couldn't map OCM\n");
+		panic("%s: Could not map OCM\n", __func__);
 
 	/* Write start address for CPU1. */
 	bus_space_write_4(fdtbus_bs_tag, ocm_handle, 0,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005210617.04L6Ht8S025600>