Blame xserver-1.6.1-proc-cmdline.patch
|
|
520bba9 |
From 794214c9da2b17c3291ec53b178a035a1f117430 Mon Sep 17 00:00:00 2001
|
|
|
520bba9 |
From: Adam Jackson <ajax@redhat.com>
|
|
|
520bba9 |
Date: Thu, 7 May 2009 17:18:31 -0400
|
|
|
520bba9 |
Subject: [PATCH] Dump /proc/cmdline in the log file too.
|
|
|
520bba9 |
|
|
|
520bba9 |
---
|
|
|
520bba9 |
hw/xfree86/common/xf86Init.c | 13 +++++++++++++
|
|
|
520bba9 |
1 files changed, 13 insertions(+), 0 deletions(-)
|
|
|
520bba9 |
|
|
|
520bba9 |
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
|
|
|
520bba9 |
index 2493526..7c0937f 100644
|
|
|
520bba9 |
--- a/hw/xfree86/common/xf86Init.c
|
|
|
520bba9 |
+++ b/hw/xfree86/common/xf86Init.c
|
|
|
520bba9 |
@@ -193,6 +193,19 @@ xf86PrintBanner(void)
|
|
|
520bba9 |
if (uname(&name) >= 0) {
|
|
|
520bba9 |
ErrorF("Current Operating System: %s %s %s %s %s\n",
|
|
|
520bba9 |
name.sysname, name.nodename, name.release, name.version, name.machine);
|
|
|
520bba9 |
+ do {
|
|
|
520bba9 |
+ char buf[80];
|
|
|
520bba9 |
+ int fd = open("/proc/cmdline", O_RDONLY);
|
|
|
520bba9 |
+ if (fd != -1) {
|
|
|
520bba9 |
+ ErrorF("Kernel command line: ");
|
|
|
520bba9 |
+ memset(buf, 0, 80);
|
|
|
520bba9 |
+ while (read(fd, buf, 80) > 0) {
|
|
|
520bba9 |
+ ErrorF("%.80s", buf);
|
|
|
520bba9 |
+ memset(buf, 0, 80);
|
|
|
520bba9 |
+ }
|
|
|
520bba9 |
+ close(fd);
|
|
|
520bba9 |
+ }
|
|
|
520bba9 |
+ } while (0);
|
|
|
520bba9 |
}
|
|
|
520bba9 |
}
|
|
|
520bba9 |
#endif
|
|
|
520bba9 |
--
|
|
|
520bba9 |
1.6.2.2
|
|
|
520bba9 |
|