From nobody Wed Jul 24 10:20:23 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 4WTVQH30mzz5RgpK; Wed, 24 Jul 2024 10:20:23 +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 4WTVQH2MDRz4PR5; Wed, 24 Jul 2024 10:20:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721816423; 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=pqQoekktodaIcygk4lFMgAAXgMPSVCHveLR1uYtNjdk=; b=ZkjR0S9hVeapcH2BARKEFe0JNQ6WKCYB0TmF+XuHq1gxwWYsD+MgNMmoG0QNVx4+Qa0Msf lPeGE90h+q1IWoos9OnfWZ3WPozok7XGgTEiDeDpp0JYOcpuItzop3zN9UR39rVvp242k1 3uXQYTscNWw/B53fwbueYWjMJ6obprAw/NAI/e7vZXrMEZvAAk7KjmksN74j56PXq9ByLW pBbAGleaZZ7ivP+WCgcZDEgRD1PgGiDZBvRGMjwXZuiuNsJURYJb216kSg0vAoGjC3FN+K wE04aR5VTcbo+DMkOYHdUIxhpx+saOACk0tq/NgTA0sB7RF9mlY1W95BdNC2pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721816423; a=rsa-sha256; cv=none; b=x+sVpen/zZI5LNoqflZuWZPFh/t/jsLdhzQAfJCn+gWvsIehjvLMLRqvyTCw+Iaa+6WpcE nARL7EPsLpcPLJS5hT2n7UQ5TrcQBY0PASGVUrJ0FhHWIHrFKy/K14w7df+zv5FP4EnWtS TpcTh3dNzRgf6VEsNSNpeHv2ghouEvXzee3QLG88vHW/H7M96rHgZrAiiGGfGdx1J4nH6o /mzZQw0yiXZGfUrSeMi0Ai105wYgVkeDBGmUY3J077Q2Ilb1pOjps8xuHQ1GqgaLLBOT8X gP+m2ohbnHqvFVzDnezP2QGbcGq4Oid1jNUA/oPHPFJxAegm5Y4KNLQMjYcUUw== 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=1721816423; 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=pqQoekktodaIcygk4lFMgAAXgMPSVCHveLR1uYtNjdk=; b=c2TaQgonKiPTBqjUCI5Uu6d4SW9eudA0JPvfXJzgO3ZgIzaqCn7KflO71nPxx7f6SpwFyF XDgrKJ6E5XjuuQWsr1xNvxh1KU5zqFVisCq7h2XkOB3F7PyGwFLDEUs08oA0/Cor9SZyrH YWhICBewDBXE8VmVwCGOgpsdaei1OJBNDFZH5NL5lIK3yvXvQlBFSL/GWrLPHry6N4RmSA 5WwKEsR8feRiZF8411OzizXD99sfZydQ1tnL/kgjsebqywtUo8gX/HF9jDJMDS5hR6SNUW XV2gWcXqm3aRb6HZqZGyzgDgGCEJnRYjMriM3eqAnqAOwE0cSpAy15WjnhaMSA== 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 4WTVQH1tbbz176F; Wed, 24 Jul 2024 10:20:23 +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 46OAKNpV051844; Wed, 24 Jul 2024 10:20:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46OAKNpe051841; Wed, 24 Jul 2024 10:20:23 GMT (envelope-from git) Date: Wed, 24 Jul 2024 10:20:23 GMT Message-Id: <202407241020.46OAKNpe051841@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: c0df224ba5b1 - main - 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/main X-Git-Reftype: branch X-Git-Commit: c0df224ba5b1fe6257dd197f8298bf59fb6e520f Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=c0df224ba5b1fe6257dd197f8298bf59fb6e520f commit c0df224ba5b1fe6257dd197f8298bf59fb6e520f Author: Bjoern A. Zeeb AuthorDate: 2024-07-23 18:27:46 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-07-24 10:19:49 +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 MFC after: 3 days Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D46093 --- 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 457d5e1eb3f7..b9460515bc14 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]; @@ -996,7 +996,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)) { @@ -1162,7 +1162,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)) {