mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
cxl/hdm: Debug, use decoder name function
The decoder enum has a name conversion function defined now. Use that instead of open coding. Suggested-by: Navneet Singh <navneet.singh@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Fan Ni <fan.ni@samsung.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20230604-dcd-type2-upstream-v2-1-f740c47e7916@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
This commit is contained in:
parent
4cce9c6d4b
commit
6ef37af6f4
@ -519,8 +519,7 @@ int cxl_dpa_alloc(struct cxl_endpoint_decoder *cxled, unsigned long long size)
|
||||
|
||||
if (size > avail) {
|
||||
dev_dbg(dev, "%pa exceeds available %s capacity: %pa\n", &size,
|
||||
cxled->mode == CXL_DECODER_RAM ? "ram" : "pmem",
|
||||
&avail);
|
||||
cxl_decoder_mode_name(cxled->mode), &avail);
|
||||
rc = -ENOSPC;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user