From nobody Wed Feb 14 22:05:38 2024 X-Original-To: dev-commits-src-main@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 4TZshM25j3z53ZQ1; Wed, 14 Feb 2024 22:05:39 +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 4TZshM1Sppz46nV; Wed, 14 Feb 2024 22:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707948339; 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=cgf7W0YDbSxIEDH3bx7okOdigTxIymaYmQ20SXdPACc=; b=s7iQCt1O269oOVTWXJNlIXNn1YP77CHVejB1aptSnR1f9+1lcb1YL1GY79/pxcYgYKXfO2 B4uqqIds0+aFNgoLMaoOYEQmsxM8Mf4OcUlZYDux67BIvCfDtAz9uI7lz9zQSih+D8LmSd IUqr89CzVK6Eh+5xHvA0XjoKPR/RuqcHnWwW4ltDh1F/iplGuOPFHqOmE1a/Bj7IIDc7Gg zk0Xre3OhSHap2t/F22fEQXWHVOUEk5Altm0v7cBSHNVmcfF1tfVoCgrd1QSJJZENodKZN pdj+o1VGojfJAcxT8vShURWV+aJ3PvfeKj7LVdItuIF88s0Ee5asQIwqBqKKiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707948339; a=rsa-sha256; cv=none; b=IT7SWlWwqqL30e+hfGTR1GZp+nmYTIhpRzMbxy4U6p47PCOKT5oCib2f8sxXbGiRt3/fFk Iuc8bnrMtUbnKFoT1R5cd1+Kqnz9AeLooSyaOEMgpo6pDr++wf9hPXIZsTjaNrLYKm42pd Xjl/xnvtARU3PPh+shLjs+3X2yMYmnmF/AsW/WEu77UpdhwudM33/XYqLhsBLXLFle9aIp jxqHb22CLbUpK3fqfMJUKRPQksJlT4co+rWH/PLLjuSreG8p0dATQs5mNf+C1YFT4BNmGd 02/Dr4Dc1q8oTpCWr60q/YhHW7auSym3wwrAjVwb7j36RhetlMP38BFIwJP0eg== 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=1707948339; 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=cgf7W0YDbSxIEDH3bx7okOdigTxIymaYmQ20SXdPACc=; b=L8/a4Tqdap81wqnuBSWL5txLO2b1fzaq2144mGbLAjJo8mUQRjxRCkWDs/51GPsTcGf/vJ n+qeY1f8v51Yy9xH7NoPmIoQ/syeRuVab9cdCk1KyzcM8Q0Q00ik/ez62NQurKPE/R8IXS YWHmnIRjb58wHYnx0Dvf96LRIGbPKdJk572WIsup3T44MMr98UcWTjvOUvU+gaW64Au1IQ fjM7x1HxqZBllEKqmZ5TaTkZcnvcFClWGfytTpnNWW/X1pqYnbwvNvgDQyRdYrL5A3mDX6 DMi6IU4X1/Z2XWr0Nw/NleYmORuQuBcvmzhkIVYOvLvKYpeSCd9DepluR2i6Nw== 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 4TZshM0RC2zG5k; Wed, 14 Feb 2024 22:05:39 +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 41EM5cfr003446; Wed, 14 Feb 2024 22:05:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EM5cxN003443; Wed, 14 Feb 2024 22:05:38 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:05:38 GMT Message-Id: <202402142205.41EM5cxN003443@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: 70617458676e - main - LinuxKPI: sort dev_() functions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 70617458676eb0b0076aa19657d21f2a9f3b704a Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=70617458676eb0b0076aa19657d21f2a9f3b704a commit 70617458676eb0b0076aa19657d21f2a9f3b704a Author: Bjoern A. Zeeb AuthorDate: 2024-02-01 23:56:45 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 22:05:21 +0000 LinuxKPI: sort dev_() functions Sort the dev_ functions by loglevel order, add the dev_alert() version and an indentation change. No functional changes. MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43719 --- 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 142003c5ca8c..b4cd97931672 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -188,15 +188,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_WARN(dev, fmt, ...) \ device_printf((dev)->bsddev, "%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__)