Both TDX spec and kernel defines SEAMCALL leaf numbers as decimal. Printing them in hex makes no sense. Correct it. Suggested-by: Kirill A. Shutemov Signed-off-by: Chao Gao Tested-by: Farrah Chen Reviewed-by: Kai Huang Reviewed-by: Zhenzhong Duan --- v2: - print leaf numbers with %llu --- arch/x86/virt/vmx/tdx/tdx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c index 5ce4ebe99774..dbc7cb08ca53 100644 --- a/arch/x86/virt/vmx/tdx/tdx.c +++ b/arch/x86/virt/vmx/tdx/tdx.c @@ -63,7 +63,7 @@ typedef void (*sc_err_func_t)(u64 fn, u64 err, struct tdx_module_args *args); static inline void seamcall_err(u64 fn, u64 err, struct tdx_module_args *args) { - pr_err("SEAMCALL (0x%016llx) failed: 0x%016llx\n", fn, err); + pr_err("SEAMCALL (%llu) failed: 0x%016llx\n", fn, err); } static inline void seamcall_err_ret(u64 fn, u64 err, -- 2.47.3