OSDN Git Service

powerpc: Make it clearer that systbl check errors are errors
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Apr 2018 03:27:36 +0000 (13:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 May 2018 13:25:16 +0000 (23:25 +1000)
If the systbl_chk.sh checks fail we print a message, but with no
indication that it's an error. That makes it hard to find in build
logs with eg. grep.

So prefix any output with "Error:".

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/systbl_chk.sh

index 31b6e7c..f2e356c 100644 (file)
@@ -16,7 +16,7 @@ awk   'BEGIN { num = -1; }    # Ignore the beginning of the file
        /^START_TABLE/ { num = 0; next; }
        /^END_TABLE/ {
                if (num != $2) {
-                       printf "NR_syscalls (%s) is not one more than the last syscall (%s)\n",
+                       printf "Error: NR_syscalls (%s) is not one more than the last syscall (%s)\n",
                                $2, num - 1;
                        exit(1);
                }
@@ -25,7 +25,7 @@ awk   'BEGIN { num = -1; }    # Ignore the beginning of the file
        {
                if (num == -1) next;
                if (($1 != -1) && ($1 != num)) {
-                       printf "Syscall %s out of order (expected %s)\n",
+                       printf "Error: Syscall %s out of order (expected %s)\n",
                                $1, num;
                        exit(1);
                };