summaryrefslogtreecommitdiff
path: root/testing/util-linux/dmesg-space.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-10 23:14:36 +0000
committerroot <root@rshg054.dnsready.net>2011-09-10 23:14:36 +0000
commit1dc1efa50ce9926a6ed832bda2ebe3319485ac09 (patch)
tree25b059dc89bbd5f44377c1df6f612cf6556a6076 /testing/util-linux/dmesg-space.patch
parent42db4a0cf3a829fcd1bc2150669c6aa3c2984815 (diff)
Sat Sep 10 23:14:36 UTC 2011
Diffstat (limited to 'testing/util-linux/dmesg-space.patch')
-rw-r--r--testing/util-linux/dmesg-space.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/util-linux/dmesg-space.patch b/testing/util-linux/dmesg-space.patch
new file mode 100644
index 000000000..2038888cc
--- /dev/null
+++ b/testing/util-linux/dmesg-space.patch
@@ -0,0 +1,31 @@
+From 31c9099a81d3a9c70fdceb198eebed678173d954 Mon Sep 17 00:00:00 2001
+From: Karel Zak <kzak@redhat.com>
+Date: Fri, 2 Sep 2011 14:42:04 +0200
+Subject: [PATCH] dmesg: remove extra space only after time stamp
+
+Signed-off-by: Karel Zak <kzak@redhat.com>
+---
+ sys-utils/dmesg.c | 5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
+index 8e7bb4b..b3713a0 100644
+--- a/sys-utils/dmesg.c
++++ b/sys-utils/dmesg.c
+@@ -480,11 +480,10 @@ static int get_next_record(struct dmesg_control *ctl, struct dmesg_record *rec)
+ break;
+ }
+ }
++ if (begin < end && *begin == ' ')
++ begin++;
+ }
+
+- if (begin < end && *begin == ' ')
+- begin++;
+-
+ rec->mesg = begin;
+ rec->mesg_size = end - begin;
+
+--
+1.7.6.1
+