From nobody Mon Feb 19 08:07:36 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 4TdZs469kNz5B2jw; Mon, 19 Feb 2024 08:07:36 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TdZs45dSkz4Jvd; Mon, 19 Feb 2024 08:07:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708330056; 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=s3ifLoErAtBZf9C5WGnUCiUYuvpRwgkAMF1ScUcgCoE=; b=FChA3vFjSFMqrcH8MNa8JKZZBMsLSpL8dHRy2ayKAsUt7JUKFZrTLQzHUmv6zDmCw/dNLd GadW/MiUQO9LdwwmNc37d4FYuqzEm8Wt7rUsLxgspEmJaI/YMxR9/m7iNr5RDNJE6pDxFC wAwlYngYMLFguUTYPA/80DpvMVI/nkOPSdT4tur+n9m7tWVpeuFQ2NoM+4P6HOcqM2VAOa wSzoDPlF17h/tWvCcuCTvai5Wp/lBmUH42TmGmFLYHqZziX6GA9leOeEdrJ6lOXnao5x6t hmzHuWTQoKeftSEcE3Jk1OvL9cQ5Ul+V7XeIeJwaGCxyjrUN2tnmJEHAyxCvtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708330056; 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=s3ifLoErAtBZf9C5WGnUCiUYuvpRwgkAMF1ScUcgCoE=; b=SUfqF6hBmFSxXbYTgIrS+I6llrhXyS0As7wkCwMtIpte4QcVyn+bPD00EFai5ZtbUQQbaE 1VJ2Qxe9CU8ftAIZAW940p4Tdc9zUccNKps6mdPIjSxNwYcDAyDAH8/1f4y8hC1/J6N55I O8tZf6TLtWLU/vOs5OGdq+5XXqiSbVzSPHTZ98KTwsPG5Z3MO4OT6r2K6Fyal3pwl0xSRH F+xrCglqbuIiMW0u2W2fXwEq7BBqEkbP+G9q0uPMvCNbPmzqk+sc8C0dkZwPB+aHkuOORB DfMr279s9uNyX8SaOMx7htS3zF58J1gahfSDrqDJr54tKGz211IUvbX54+PRSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708330056; a=rsa-sha256; cv=none; b=ZkMpTfLSAkQUTg9+pCeGD4CYCayl39ZJYWZEEJfLlZn9qdQTQv8QMpTw8nNgf8sdcx30lO ms29jqEF9PObB8EERCFONAZsvulj6IVKSn33c1FWXBVlOiPWIdmgMjoJfaTSXrxfNITh+P CPI9NWN3o6SyUw412DwLSg2CPRtsqXfAw5Io319NWpm+5s1wSpdq4tcV7ApTw2ph7BYIvm eydUwOqk5/SBAM6BWxectJT0nIC9+iJ0Jn2YqcCJRJ3YcdFfzR9hf+G7zvK3VzTYop9L2f 604bUK1X14SCxSMIiArVH1trMBlZNkXnQQcFxeZ15gWjYWKR5shMCOV4LD4wJg== 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 4TdZs44hP1zRW0; Mon, 19 Feb 2024 08:07:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41J87a4u015286; Mon, 19 Feb 2024 08:07:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41J87aHd015283; Mon, 19 Feb 2024 08:07:36 GMT (envelope-from git) Date: Mon, 19 Feb 2024 08:07:36 GMT Message-Id: <202402190807.41J87aHd015283@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: 2477106d5d0f - stable/13 - LinuxKPI: sort dev_() functions 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2477106d5d0ff77d545b7d012df48287f9e3acd8 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=2477106d5d0ff77d545b7d012df48287f9e3acd8 commit 2477106d5d0ff77d545b7d012df48287f9e3acd8 Author: Bjoern A. Zeeb AuthorDate: 2024-02-01 23:56:45 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-19 08:01:58 +0000 LinuxKPI: sort dev_() functions Sort the dev_ functions by loglevel order, add the dev_alert() version and an indentation change. No functional changes. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43719 (cherry picked from commit 70617458676eb0b0076aa19657d21f2a9f3b704a) --- sys/compat/linuxkpi/common/include/linux/device.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index ef8f72645c56..7742750339d9 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -185,15 +185,17 @@ show_class_attr_string(struct class *class, struct class_attribute_string class_attr_##_name = \ _CLASS_ATTR_STRING(_name, _mode, _str) -#define dev_err(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_crit(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_warn(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_info(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_emerg(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_dbg(dev, fmt, ...) do { } while (0) #define dev_printk(lvl, dev, fmt, ...) \ - device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) + device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) + +#define dev_emerg(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_alert(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_crit(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_err(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_warn(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_info(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_dbg(dev, fmt, ...) do { } while (0) #define dev_info_once(dev, ...) do { \ static bool __dev_info_once; \