svn commit: r337546 - head/sys/kern

Ian Lepore ian at freebsd.org
Thu Aug 9 18:09:45 UTC 2018


On Thu, 2018-08-09 at 17:53 +0000, Kyle Evans wrote:
> Author: kevans
> Date: Thu Aug  9 17:53:18 2018
> New Revision: 337546
> URL: https://svnweb.freebsd.org/changeset/base/337546
> 
> Log:
>   subr_prf: Use "sizeof current_boot_tag" instead
> 
> Modified:
>   head/sys/kern/subr_prf.c
> 
> Modified: head/sys/kern/subr_prf.c
> =====================================================================
> =========
> --- head/sys/kern/subr_prf.c	Thu Aug  9 17:47:47 2018	(
> r337545)
> +++ head/sys/kern/subr_prf.c	Thu Aug  9 17:53:18 2018	(
> r337546)
> @@ -1040,7 +1040,7 @@ msgbufinit(void *ptr, int size)
>  	/* Attempt to fetch kern.boot_tag tunable on first mapping
> */
>  	if (!msgbufmapped)
>  		TUNABLE_STR_FETCH("kern.boot_tag", current_boot_tag,
> -		    BOOT_TAG_SZ + 1);
> +		    sizeof current_boot_tag);

Style(9) mandates parens with sizeof.

-- Ian

>  	msgbufp = (struct msgbuf *)(cp + size);
>  	msgbuf_reinit(msgbufp, cp, size);
>  	msgbuf_addstr(msgbufp, -1, current_boot_tag, 0);
> 


More information about the svn-src-head mailing list