From d9c5dbc9c7ba2158930b28c9b9eea8dcff7e3bdd Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 10 Apr 2019 20:46:31 +0200 Subject: Now a patch --- 0001-Updated-kernel-panic.c-Added-megumin.patch | 100 ++++++++++++++++++++++++ megumin.diff | 87 --------------------- 2 files changed, 100 insertions(+), 87 deletions(-) create mode 100644 0001-Updated-kernel-panic.c-Added-megumin.patch delete mode 100644 megumin.diff diff --git a/0001-Updated-kernel-panic.c-Added-megumin.patch b/0001-Updated-kernel-panic.c-Added-megumin.patch new file mode 100644 index 0000000..3ad61bf --- /dev/null +++ b/0001-Updated-kernel-panic.c-Added-megumin.patch @@ -0,0 +1,100 @@ +From 1ca4ce5a2d0992b0c324741e325d26ca624cf0be Mon Sep 17 00:00:00 2001 +From: Jonas Gunz +Date: Wed, 10 Apr 2019 20:44:14 +0200 +Subject: [PATCH] Updated kernel/panic.c: Added megumin + +Kernel prints ASCII art of megumin on Panic. Why? Because. +--- + kernel/panic.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 61 insertions(+), 1 deletion(-) + +diff --git a/kernel/panic.c b/kernel/panic.c +index 0ae0d7332f12..0a8ad8757ab6 100644 +--- a/kernel/panic.c ++++ b/kernel/panic.c +@@ -8,6 +8,7 @@ + * This function is used through-out the kernel (including mm and fs) + * to indicate a major problem. + */ ++ + #include + #include + #include +@@ -167,6 +168,58 @@ void panic(const char *fmt, ...) + int old_cpu, this_cpu; + bool _crash_kexec_post_notifiers = crash_kexec_post_notifiers; + ++ const char* megumin[] = { ++ " #=&&%%%%%%%%%%%%%%%%%%%%%%%%%%%&$ ", ++ " $&???????????%%%%%%%%%%%%%%%%%%%%%& ", ++ " &%///???????????????????%%%%???????%%$ ", ++ " $%////////////??????????????????????????& ", ++ " $%!!!!!!!!!!!!!////????????????????//////??$ ", ++ " $? - #include - #include -@@ -167,6 +168,58 @@ void panic(const char *fmt, ...) - int old_cpu, this_cpu; - bool _crash_kexec_post_notifiers = crash_kexec_post_notifiers; - -+ const char* megumin[] = { -+ " #=&&%%%%%%%%%%%%%%%%%%%%%%%%%%%&$ ", -+ " $&???????????%%%%%%%%%%%%%%%%%%%%%& ", -+ " &%///???????????????????%%%%???????%%$ ", -+ " $%////////////??????????????????????????& ", -+ " $%!!!!!!!!!!!!!////????????????????//////??$ ", -+ " $?