void-packages/srcpkgs/util-linux/patches/dmesg-space.patch

31 lines
767 B
Diff

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