From nobody Sat Sep 28 10:38:09 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 4XG3hK6JZPz5X8M1; Sat, 28 Sep 2024 10:38:09 +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 4XG3hK3gRTz46kw; Sat, 28 Sep 2024 10:38:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519889; 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=h+0qmLGeosD9dKZtIqtgJjCicL0zuuxSQkPWK9FD8LU=; b=qE/0x+87mPGs2oyzPRBeI7p3YMMnuAMcD6BIVbvAIC6kjt5CIPz+/O3vorP9tkm/bJEpBU 9fUOFMuNlxi9F5x7z7mRuddlH88sa7CK9WW47MAVhSRG7NMOCA+6gnWOlSHGkI7WaQVeH+ TwJtar5MWtvpcl3ca73rpBg/B0ZjVPO2e8SB32p0JjoNJhiVJsnP/EON7eM4rGdpzHTgSN ZmmyOeOH7ap5y45oDWVjqusGHTVz7XrYdrxlnRQDSHbdTz9RRjwDJMoGfS0b3lKFJgg0W6 j7WIqOOxiY2CmWZ0yZZVKsM+PsY9H62i9GpftF09tFoL5ZbQZLRbf8j1wRuO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519889; 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=h+0qmLGeosD9dKZtIqtgJjCicL0zuuxSQkPWK9FD8LU=; b=ctKvV2ZgGTyxmaI8SZGoQ/szOaqaUR9XNDeBQxCFTRHfwGMS1XqT43f8Plagb60JsqV84D QJZPV+aMPJ+Lid4Mq+DN04ZD1dA069ECxsBwztMx9eLTCRVe8y/rXZR0sfxZIDawOUNt3K GmKwBoZu/H2jv9dXpx4Qdvos6BKO86Yv9yUIVu7XKWjHiP7vblWw3cgewG7/Zh+MTcLbQ0 ZzV/pYm7vMUbmVduLC8bZY/24I5+dkoXh1nQKFhtE/M3I/AgPj5KUer+tBRm97pZ7ML2jY GNd7jx4jtasw8iqbZSiLuCzUua0/f8JKD6R5Ic94Ln3qaT/IGvilzrhrvUHsww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727519889; a=rsa-sha256; cv=none; b=qHLoKN+v3EjekeLIPxygsqhbiYJ/EGjRtdd6pEZ3VtCxYZKakz6JiO7MiQ8w1sGdQQZIV+ nki8fbcbFR2OgazJdyxjPCr8XngVFAddtPfahW7Lvi8kyHaFPFhWbbTel51M8/vWxm/QUg ZAnZi1y6wkoqpBrtyD/UOgKqoxwqGBljeLfe++vagW7ghh0DMZU0cP5Puy/t6gty4Ld2mQ TnGHSpF0euqc9DEI0u28BwQ5rusewjxfimVsxiBlhqmw7cIqCP30bx18UNpW/RJfM+VVKx 1NXUO7mwPHAx0f/PhXKTiFq4ZZ3bGbttwhL3Cn2P8PEpA/6SAfo6ZbqoQkGQ1w== 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 4XG3hK2n2PzLc1; Sat, 28 Sep 2024 10:38:09 +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 48SAc9TF097549; Sat, 28 Sep 2024 10:38:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48SAc9iG097546; Sat, 28 Sep 2024 10:38:09 GMT (envelope-from git) Date: Sat, 28 Sep 2024 10:38:09 GMT Message-Id: <202409281038.48SAc9iG097546@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: 1364bc30deec - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 1364bc30deec992a3aee2bcec0ad4a3ceb0b8934 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=1364bc30deec992a3aee2bcec0ad4a3ceb0b8934 commit 1364bc30deec992a3aee2bcec0ad4a3ceb0b8934 Author: Bjoern A. Zeeb AuthorDate: 2024-07-23 18:27:46 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-28 10:35:11 +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 90fc88480a40..403f5fe11455 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -715,7 +715,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]; @@ -998,7 +998,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)) { @@ -1164,7 +1164,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)) {