mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/xe: Update SRIOV printk macros
Recently we introduced xe-based printk macros, use them instead of plain drm-based ones. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://lore.kernel.org/r/20251005133641.2651-2-michal.wajdeczko@intel.com
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
* Copyright © 2023-2025 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _XE_SRIOV_PRINTK_H_
|
||||
#define _XE_SRIOV_PRINTK_H_
|
||||
|
||||
#include <drm/drm_print.h>
|
||||
|
||||
#include "xe_device_types.h"
|
||||
#include "xe_sriov_types.h"
|
||||
#include "xe_printk.h"
|
||||
|
||||
#define xe_sriov_printk_prefix(xe) \
|
||||
((xe)->sriov.__mode == XE_SRIOV_MODE_PF ? "PF: " : \
|
||||
(xe)->sriov.__mode == XE_SRIOV_MODE_VF ? "VF: " : "")
|
||||
|
||||
#define __XE_SRIOV_PRINTK_FMT(_xe, _fmt, _args...) \
|
||||
"%s" _fmt, xe_sriov_printk_prefix(_xe), ##_args
|
||||
|
||||
#define xe_sriov_printk(xe, _level, fmt, ...) \
|
||||
drm_##_level(&(xe)->drm, "%s" fmt, xe_sriov_printk_prefix(xe), ##__VA_ARGS__)
|
||||
xe_##_level((xe), __XE_SRIOV_PRINTK_FMT((xe), fmt, ##__VA_ARGS__))
|
||||
|
||||
#define xe_sriov_err(xe, fmt, ...) \
|
||||
xe_sriov_printk((xe), err, fmt, ##__VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user