]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/devcoredump: Fix print typo of offset
authorShuicheng Lin <shuicheng.lin@intel.com>
Thu, 20 Feb 2025 00:17:09 +0000 (00:17 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 24 Feb 2025 21:31:12 +0000 (13:31 -0800)
The log should print with "offset" instead of "size".
Correct the typo in the comment.

v2: split kzalloc change and add typo fix in commit message (Lucas)

Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250220001710.1803749-2-shuicheng.lin@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_devcoredump.c

index 39fe485d20858f67f3ecfa26cd7347b5c9d41197..60d15e45501739181b9f4b479411b0e21bc971cc 100644 (file)
@@ -237,7 +237,7 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work)
 
        /*
         * NB: Despite passing a GFP_ flags parameter here, more allocations are done
-        * internally using GFP_KERNEL expliictly. Hence this call must be in the worker
+        * internally using GFP_KERNEL explicitly. Hence this call must be in the worker
         * thread and not in the initial capture call.
         */
        dev_coredumpm_timeout(gt_to_xe(ss->gt)->drm.dev, THIS_MODULE, coredump, 0, GFP_KERNEL,
@@ -423,7 +423,7 @@ void xe_print_blob_ascii85(struct drm_printer *p, const char *prefix, char suffi
        if (size & 3)
                drm_printf(p, "Size not word aligned: %zu", size);
        if (offset & 3)
-               drm_printf(p, "Offset not word aligned: %zu", size);
+               drm_printf(p, "Offset not word aligned: %zu", offset);
 
        line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_KERNEL);
        if (IS_ERR_OR_NULL(line_buff)) {