Vito Caputo
9ed794a32d
tree-wide: minor formatting inconsistency cleanups
2016-02-23 14:20:34 -08:00
Daniel Mack
b26fa1a2fb
tree-wide: remove Emacs lines from all files
...
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file.
2016-02-10 13:41:57 +01:00
Zbigniew Jędrzejewski-Szmek
3f65d73149
udev: add emacs header line
...
Otherwise emacs wants to use 2-space indentation and other
attrocities.
2015-12-07 00:45:08 -05:00
Thomas Hindoe Paaboel Andersen
cf0fbc49e6
tree-wide: sort includes
...
Sort the includes accoding to the new coding style.
2015-11-16 22:09:36 +01:00
Lennart Poettering
3ffd4af220
util-lib: split out fd-related operations into fd-util.[ch]
...
There are more than enough to deserve their own .c file, hence move them
over.
2015-10-25 13:19:18 +01:00
Ronny Chevalier
6482f6269c
shared: add formats-util.h
2015-04-10 23:54:48 +02:00
Thomas Hindoe Paaboel Andersen
2eec67acbb
remove unused includes
...
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
2015-02-23 23:53:42 +01:00
Lennart Poettering
5ac0162c3a
udevadm,..: make --help output of udev tools more like the output of the various other tools
2015-01-05 13:19:55 +01:00
Michal Schmidt
56f64d9576
treewide: use log_*_errno whenever %m is in the format string
...
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'
Plus some whitespace, linewrap, and indent adjustments.
2014-11-28 19:49:27 +01:00
Kay Sievers
9ec6e95b04
udev: place opening { at the same line as the function declaration
2014-07-29 15:49:25 +02:00
Zbigniew Jędrzejewski-Szmek
de0671ee7f
Remove unnecessary casts in printfs
...
No functional change expected :)
2014-05-15 15:29:58 +02:00
Greg KH
29804cc1e0
use memzero(foo, length); for all memset(foo, 0, length); calls
...
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length).
2014-01-31 11:55:01 +01:00
Lennart Poettering
9f6445e34a
log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings
2013-12-24 16:39:37 +01:00
Zbigniew Jędrzejewski-Szmek
44433ebdb1
udevadm: modernization
2013-12-18 23:58:23 -05:00
Zbigniew Jędrzejewski-Szmek
7643ac9a8a
udevadm,scsi_id: add short options to help strings and to the man page
...
Also clean things up a bit here and there.
2013-12-18 23:58:23 -05:00
Lennart Poettering
9d458c0902
clients: fix some signal handler issues
2013-11-08 14:07:27 +01:00
Kay Sievers
d5a89d7dc1
udev: move string copy functions to shared/
2013-01-09 19:06:46 +01:00
Kay Sievers
1298001ec5
use the same email address everywhere
2012-11-12 19:47:43 +01:00
Kay Sievers
8fef0ff25c
udev: replace ARRAY_SIZE() with ELEMENTSOF()
2012-04-16 19:20:57 +02:00
Kay Sievers
baa30fbc2c
udev: switch to systemd logging functions
2012-04-08 16:06:20 +02:00
Kay Sievers
3e2147858f
move imported udev into place
2012-04-04 05:05:07 +02:00