[arch-commits] Commit in linux/trunk (PKGBUILD change-default-console-loglevel.patch)
Tobias Powalowski
tpowa at archlinux.org
Thu Jul 28 11:10:44 UTC 2011
Date: Thursday, July 28, 2011 @ 07:10:44
Author: tpowa
Revision: 133468
add loglevel patch
Added:
linux/trunk/change-default-console-loglevel.patch
Modified:
linux/trunk/PKGBUILD
---------------------------------------+
PKGBUILD | 11 +++++++++--
change-default-console-loglevel.patch | 12 ++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-07-28 09:28:22 UTC (rev 133467)
+++ PKGBUILD 2011-07-28 11:10:44 UTC (rev 133468)
@@ -20,12 +20,14 @@
'config' 'config.x86_64'
# standard config files for mkinitcpio ramdisk
"${pkgname}.preset"
- 'fix-i915.patch')
+ 'fix-i915.patch'
+ 'change-default-console-loglevel.patch')
md5sums=('398e95866794def22b12dfbc15ce89c0'
'fc6aae0fb4d70feff92ec762d29dee45'
'fd5a1712ddea696eee5255de2d854218'
'eb14dcfd80c00852ef81ded6e826826a'
- '263725f20c0b9eb9c353040792d644e5')
+ '263725f20c0b9eb9c353040792d644e5'
+ '9d3c56a4b999c8bfbd4018089a62f662')
build() {
cd "${srcdir}/linux-${_basekernel}"
@@ -38,6 +40,11 @@
# fix #19234 i1915 display size
patch -Np1 -i "${srcdir}/fix-i915.patch"
+ # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
+ # remove this when a Kconfig knob is made available by upstream
+ # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
+ patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
+
if [ "${CARCH}" = "x86_64" ]; then
cat "${srcdir}/config.x86_64" > ./.config
else
Added: change-default-console-loglevel.patch
===================================================================
--- change-default-console-loglevel.patch (rev 0)
+++ change-default-console-loglevel.patch 2011-07-28 11:10:44 UTC (rev 133468)
@@ -0,0 +1,12 @@
+diff -upr linux-3.0.orig/kernel/printk.c linux-3.0/kernel/printk.c
+--- linux-3.0.orig/kernel/printk.c 2011-07-22 05:17:23.000000000 +0300
++++ linux-3.0/kernel/printk.c 2011-07-27 14:43:07.000000000 +0300
+@@ -58,7 +58,7 @@ void asmlinkage __attribute__((weak)) ea
+
+ /* We show everything that is MORE important than this.. */
+ #define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */
+-#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */
++#define DEFAULT_CONSOLE_LOGLEVEL 4 /* anything MORE serious than KERN_DEBUG */
+
+ DECLARE_WAIT_QUEUE_HEAD(log_wait);
+
More information about the arch-commits
mailing list