mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
fs/resctrl: Use correct format specifier for printing error pointers
Use correct format specifier for error pointer as Coccinelle suggests: .../fs/resctrl/monitor.c:148:8-15: WARNING: Consider using %pe to print PTR_ERR() .../fs/resctrl/monitor.c:760:9-16: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Tested-by: Babu Moger <babu.moger@amd.com> Link: https://patch.msgid.link/b4a45de57eca6364b7df9455f9eb25aa9bab5807.1782857711.git.reinette.chatre@intel.com
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
2566b5cd6a
commit
f20bed0cc8
@@ -144,8 +144,8 @@ void __check_limbo(struct rdt_l3_mon_domain *d, bool force_free)
|
||||
arch_priv = mon_event_all[QOS_L3_OCCUP_EVENT_ID].arch_priv;
|
||||
arch_mon_ctx = resctrl_arch_mon_ctx_alloc(r, QOS_L3_OCCUP_EVENT_ID);
|
||||
if (IS_ERR(arch_mon_ctx)) {
|
||||
pr_warn_ratelimited("Failed to allocate monitor context: %ld",
|
||||
PTR_ERR(arch_mon_ctx));
|
||||
pr_warn_ratelimited("Failed to allocate monitor context: %pe",
|
||||
arch_mon_ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -771,8 +771,8 @@ static void mbm_update_one_event(struct rdt_resource *r, struct rdt_l3_mon_domai
|
||||
} else {
|
||||
rr.arch_mon_ctx = resctrl_arch_mon_ctx_alloc(rr.r, evtid);
|
||||
if (IS_ERR(rr.arch_mon_ctx)) {
|
||||
pr_warn_ratelimited("Failed to allocate monitor context: %ld",
|
||||
PTR_ERR(rr.arch_mon_ctx));
|
||||
pr_warn_ratelimited("Failed to allocate monitor context: %pe",
|
||||
rr.arch_mon_ctx);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user