From nobody Sat Sep 28 21:52:16 2024 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 4XGLf83T3Nz5XtnP; Sat, 28 Sep 2024 21:52:16 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XGLf8217Vz44lb; Sat, 28 Sep 2024 21:52:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727560336; 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=WYMfXVmktpv7BodVPLpSeT/qUACcrs+YrgBwNdeIp9I=; b=DZDFJON/7DuvZCZJPUeWBeI6vapX/b8lUhKmtoSf3CSJnT+mCZZXLuAkcTGBGIS9dIkSG6 95UxevOTPGZXfdGVOSp1fFYprg2GigM4HahhI6xzsX7Vg5UNURNiyrLz5oBVG5HhYFbBZi 4MGo7zlHUSWiK7cjvYj/4HS/zq2hKTn2ta7u4FNWfARYomZ/4l+VtTLgetiyLGoXliIIgF l0MCKF8zDB8sZ75QB2Li/GOxaM6F7LuaCLqEE43DRcxXwaZ0BOVOxDHI6eey2Ypmbmziuq iZzaEtc8P5OsTyt6uDGIQY0Y94nClEnK6vUMiqxLJkorRIAVDx/+8XiBZQbQzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727560336; 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=WYMfXVmktpv7BodVPLpSeT/qUACcrs+YrgBwNdeIp9I=; b=gCTlS4RvMNMXr57xlzozBXFOba+0LHkEUEUD093+FnctpHdNZYqB786r8L5XY6gnCmcVQT nXmX9UhFb+GcpawF3pURf74YGShX5lcBGqSyI8QA5G2bg+ELnRJtS12cnPrXDUI79tax4y ZwUWsBA7qiwtK6WZgtYwPjG8NzcJiBekb6FaMIconDmeg3o/tqswSXYLYN4RPGTmrJEYBU Ra6FTWzzqgXgyUujYlSgoDrnhIHYXjT4WYc1G10oEjczz3LtyHe9Xur6fhcXJ94zIaxNRh gj97eX2IJzCXamFHtPtqQDZEF05keG26AWZVrL7LD4EavWBL3FOYcj2z37iIrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727560336; a=rsa-sha256; cv=none; b=AXWynyyeIEOctfr9LXwY5rq+r5aN56Msvq1dUuZDVXQnrzzQrw/km6BcfInzeJvNxIek4H mq7rvqy0XXurf7bu2OEfXYzaR61XQBJ38xZJMn1yYmZcUHPaF2eOSSgoVgEs9Z8R7jX3+x OeolEM3XAxPqG5jyUhK+9E5rjfXTvxBtbYD3VA3bwjqoksT9d9gy43jEWFuIDYp8RViSmO fu9nPhkMVFZvAAYM9EmH1CJdfqq8bOoFtf6bbVttAkrJnizW9nsfE54EQ4lpdQog2/mfti g2MDuM9hG8n1Q7wVdyVSPnI2PO2+FhcDB78fsNl5ty/m7xpRqgzQQKCER00WSQ== 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 4XGLf81bWRzhpW; Sat, 28 Sep 2024 21:52:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48SLqGLb051649; Sat, 28 Sep 2024 21:52:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48SLqGPH051646; Sat, 28 Sep 2024 21:52:16 GMT (envelope-from git) Date: Sat, 28 Sep 2024 21:52:16 GMT Message-Id: <202409282152.48SLqGPH051646@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: ef3fefe03103 - stable/13 - kern_malloc: remove '.' and '\n' from KASSERT/panic 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ef3fefe0310355cfe89a7e48acbb353915ffb2f9 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ef3fefe0310355cfe89a7e48acbb353915ffb2f9 commit ef3fefe0310355cfe89a7e48acbb353915ffb2f9 Author: Bjoern A. Zeeb AuthorDate: 2024-07-23 18:27:46 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-28 19:29:06 +0000 kern_malloc: remove '.' and '\n' from KASSERT/panic KASSERT and panic calls should not have a '.' at the end of the message and do not need '\n'. Remove these. No functional changes. Reported by: markj (during review of D45812) Sponsored by: The FreeBSD Foundation Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D46093 (cherry picked from commit c0df224ba5b1fe6257dd197f8298bf59fb6e520f) --- sys/kern/kern_malloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 1a00e184c83f..6a36f982cc78 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -713,7 +713,7 @@ malloc_domain(size_t *sizep, int *indxp, struct malloc_type *mtp, int domain, size = *sizep; KASSERT(size <= kmem_zmax && (flags & M_EXEC) == 0, - ("malloc_domain: Called with bad flag / size combination.")); + ("malloc_domain: Called with bad flag / size combination")); if (size & KMEM_ZMASK) size = (size & ~KMEM_ZMASK) + KMEM_ZBASE; indx = kmemsize[size >> KMEM_ZSHIFT]; @@ -990,7 +990,7 @@ zfree(void *addr, struct malloc_type *mtp) vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); if (slab == NULL) - panic("free: address %p(%p) has not been allocated.\n", + panic("free: address %p(%p) has not been allocated", addr, (void *)((u_long)addr & (~UMA_SLAB_MASK))); switch (GET_SLAB_COOKIE(slab)) { @@ -1156,7 +1156,7 @@ malloc_usable_size(const void *addr) #else vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); if (slab == NULL) - panic("malloc_usable_size: address %p(%p) is not allocated.\n", + panic("malloc_usable_size: address %p(%p) is not allocated", addr, (void *)((u_long)addr & (~UMA_SLAB_MASK))); switch (GET_SLAB_COOKIE(slab)) {