]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
scripts/checkpatch: Fix typo in SPDX-License-Identifier keyword
authorZhao Liu <zhao1.liu@intel.com>
Tue, 8 Apr 2025 16:27:02 +0000 (00:27 +0800)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 8 Apr 2025 18:46:10 +0000 (20:46 +0200)
Fix the typo in the error message to help `grep` the example:

ERROR: New file '***' requires 'SPDX-License-Identifer'

Fixes: fa4d79c64dae ("scripts: mandate that new files have SPDX-License-Identifier")
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250408162702.2350565-1-zhao1.liu@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
scripts/checkpatch.pl

index 6ae9d7febee82f52bbc8736a6f741ae8f8b80b89..365892de04287f3da895933998c9c4b0d8aeaf19 100755 (executable)
@@ -1688,11 +1688,11 @@ sub process {
                            /\.(c|h|py|pl|sh|json|inc|Makefile)$/) {
                            # source code files MUST have SPDX license declared
                            ERROR("New file '$expect_spdx_file' requires " .
-                                 "'SPDX-License-Identifer'");
+                                 "'SPDX-License-Identifier'");
                        } else {
                            # Other files MAY have SPDX license if appropriate
                            WARN("Does new file '$expect_spdx_file' need " .
-                                "'SPDX-License-Identifer'?");
+                                "'SPDX-License-Identifier'?");
                        }
                    }
                    $expect_spdx = 1;