Karel Zak
7f1ec5e8d4
lscpu: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:28:02 +02:00
Karel Zak
4f92adb61a
mountpoint: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:25:28 +02:00
Karel Zak
704c770555
rtcwake: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:23:30 +02:00
Karel Zak
ae1ae49e78
renice: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:20:54 +02:00
Karel Zak
3cf01b94d4
unshare: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:16:40 +02:00
Karel Zak
2daae86205
fstrim: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:14:02 +02:00
Karel Zak
a2aef6d928
fsfreeze: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:12:08 +02:00
Karel Zak
2e49d90f34
flock: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:07:30 +02:00
Karel Zak
130bf041ba
fallocate: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:04:08 +02:00
Karel Zak
dcd16b0fb0
dmesg: cleanup usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16 13:02:00 +02:00
Petr Uzel
5920295058
dmesg: avoid mess at the end of dmesg output
...
Since util-linux commit a7ee94f220
,
dmesg incorrectly calculates number of bytes that are remaining in the
buffer in get_next_record(). This could, under specific circumstances,
cause printing mess at the end of dmesg output:
> dmesg | tail
[ 1191.478725] Adding 285488k swap on /root/swapfile. Priority:-2 extents:15 across:1186612k
[ 1205.588331] Adding 285488k swap on /root/swapfile. Priority:-2 extents:15 across:1186612k
\xffffffba\xffffffba
Reported-by: Glenn Doig <doiggl@velocitynet.com.au>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710417
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-08-15 14:28:21 +02:00
Karel Zak
344f73442d
ipcs: use unsigned type for uid/gid
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-09 15:30:19 +02:00
Benno Schulenberg
f14f02f581
textual: add some guiding comments for translators
...
These are picked up by xgettext and put in the POT file.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg
79d5a3b47f
fstrim: correct mistaken grammar in one message
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Karel Zak
cfe2d24951
setarch: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:16:21 +02:00
Karel Zak
1599e6770c
tunelp: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:14:21 +02:00
Karel Zak
4ae92684e5
cytune: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:12:30 +02:00
Karel Zak
33d18dc435
readprofile: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:07:32 +02:00
Karel Zak
329fd1c3a0
lscpu: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:03:19 +02:00
Karel Zak
b60b3c1ba4
ipcs: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:02:45 +02:00
Karel Zak
738767b921
dmesg: fix compiler warnings [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 13:01:31 +02:00
Karel Zak
9feec79cc5
misc: use unsigned int for bit-fileds
...
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-29 10:51:06 +02:00
Karel Zak
ce75b60528
build-sys: fix 'make checkincludes' warnings
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-28 13:21:00 +02:00
Karel Zak
477251f8f5
lscpu: extend --parse functionality
...
... to allow define output columns, for example:
$ lscpu --parse=CPU,CORE,NODE,CACHE
# CPU,Core,Node,L1d:L1i:L2
0,0,0,0:0:0
1,1,0,1:1:0
Note that CPU caches are separated by ":" in the new format. The
output for --parse (without the list of the columns) is backwardly
compatible, it means:
$ lscpu --parse
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,0,,0,0,0
1,1,0,0,,1,1,0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-27 23:10:01 +02:00
Karel Zak
c87638ad30
include: [strutils.c] add list parsers
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-27 16:41:21 +02:00
Davidlohr Bueso
08de16d003
lscpu: use xalloc
...
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-07-26 11:58:38 +02:00
Karel Zak
608d45015f
dmesg: allow to print time delta without timestamp
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-20 17:03:24 +02:00
Karel Zak
641986cf92
dmesg: mark some options mutually exclusive
...
Reported-by: "Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-20 15:50:34 +02:00
Karel Zak
42fac79a21
dmesg: add --ctime to print human readable timestamps
...
Based on patch from "corentin.labbe" <corentin.labbe@geomatys.fr>.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-20 14:26:45 +02:00
Karel Zak
bd304d92ff
dmesg: add --show-delta option
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-20 12:52:15 +02:00
Karel Zak
a7ee94f220
dmesg: print_buffer() refactoring
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-19 21:37:34 +02:00
Karel Zak
aca1633a3e
dmesg: variables refactoring
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-19 20:00:54 +02:00
Marc-Antoine Perennou
730d5e7761
dmesg: fix segfault
...
An element declared as size_t cannot be detected as negative (len < 0)
is always false.
This can lead to an infinite loop causing a segmentation fault.
Check if len is equal to -1 or -2 instead
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2011-07-18 23:46:45 +02:00
Karel Zak
d74b8dfc70
dmesg: add -t option to suppress timestamps
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-18 11:48:41 +02:00
Karel Zak
2500018011
dmesg: add -u and -k options
...
-u : print kernel messages
-k : print userspace message
The options could be mixed together or with --facility option too.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-18 11:28:15 +02:00
Heiko Carstens
56baaa4e1f
lscpu: add support for books
...
This patch adds support for books in cpu topology output. Books are
currently only present on the s390 architecture, however it looks like
others will follow to use the extra scheduling domain of the kernel.
Books are logically between sockets and nodes. In order to not break
any existing tools that might parse the output of lscpu the output
is changed so that books will follow nodes:
CPU,Core,Socket,Node,Book
In addition the readable output is changed from
"CPU socket(s):" to "Socket(s) per book:" or simply "Socket(s):" in the
absence of books.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-07-18 10:46:35 +02:00
Karel Zak
872a1575e8
dmesg: fix typo in usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-14 13:46:13 +02:00
Karel Zak
5ef053699b
dmesg: reorder options, add comments
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-14 13:31:53 +02:00
Karel Zak
0e24df3b10
dmesg: add --facility option
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-14 12:48:07 +02:00
Karel Zak
85f3cc55f7
dmesg: add --decode to print readable facility and level
...
# dmesg --decode
...
kern :info : [53335.743185] PM: resume of devices complete after 2496.795 msecs
kern :debug : [53335.743593] PM: Finishing wakeup.
kern :warn : [53335.743595] Restarting tasks ... done.
kern :info : [53335.790452] video LNXVIDEO:00: Restoring backlight state
kern :debug : [53336.418576] e1000e 0000:00:19.0: irq 45 for MSI/MSI-X
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-14 12:30:18 +02:00
Karel Zak
636a6207d9
dmesg: add --level=<list>
...
For example
dmesg --level=err,warn
will print only error and warning messages.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-13 15:50:47 +02:00
Karel Zak
5c8f6bc6df
dmesg: consolidate level parsiig code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-13 15:06:53 +02:00
Karel Zak
b8300c0a1e
dmesg: don't print non-printable chars, parse records
...
All non-printable chars, non-printable multibyte sequences or invalid
multibyte sequences will be replaced with \x<hex> strings.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-13 15:00:49 +02:00
Karel Zak
f06ec64fda
dmesg; support level names (e.g. --console-level=alert)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 16:33:34 +02:00
Karel Zak
2170174ee3
dmesg: add --console-on and --console-off
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 15:30:16 +02:00
Karel Zak
0506537a10
dmesg: cleanup options and man page
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 14:56:22 +02:00
Karel Zak
0419986053
dmesg: add --clear (SYSLOG_ACTION_CLEAR)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 14:33:27 +02:00
Karel Zak
48c5c66212
dmesg: refactoring - cleanup main() code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 14:26:19 +02:00
Karel Zak
65e3eed924
dmesg: refactoring - cleanup read buffer code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 14:15:07 +02:00
Karel Zak
f4fa5b44df
dmesg: refactoring - cleanup print buffer code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-01 13:57:36 +02:00